mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 05:18:01 +08:00
Merge pull request #5810 from aignatov-bio/ai-sci-8890-fix-js-error-in-console-log
Fix js error in console log [SCI-8890]
This commit is contained in:
commit
03225bbd7a
3 changed files with 8 additions and 4 deletions
|
@ -499,7 +499,9 @@ var ExperimnetTable = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
updateExperimentToolbar: function() {
|
updateExperimentToolbar: function() {
|
||||||
|
if (window.actionToolbarComponent) {
|
||||||
window.actionToolbarComponent.fetchActions({ my_module_ids: this.selectedMyModules });
|
window.actionToolbarComponent.fetchActions({ my_module_ids: this.selectedMyModules });
|
||||||
|
}
|
||||||
},
|
},
|
||||||
selectDate: function($field) {
|
selectDate: function($field) {
|
||||||
var datePicker = $field.data('DateTimePicker');
|
var datePicker = $field.data('DateTimePicker');
|
||||||
|
|
|
@ -144,9 +144,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateButtons() {
|
function updateButtons() {
|
||||||
|
if (window.actionToolbarComponent) {
|
||||||
window.actionToolbarComponent.fetchActions({ label_template_ids: rowsSelectedIDs() });
|
window.actionToolbarComponent.fetchActions({ label_template_ids: rowsSelectedIDs() });
|
||||||
$('.dataTables_scrollBody').css('padding-bottom', `${rowsSelectedIDs().length > 0 ? 68 : 0}px`);
|
$('.dataTables_scrollBody').css('padding-bottom', `${rowsSelectedIDs().length > 0 ? 68 : 0}px`);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function reloadTable() {
|
function reloadTable() {
|
||||||
LABEL_TEMPLATE_TABLE.ajax.reload(null, false);
|
LABEL_TEMPLATE_TABLE.ajax.reload(null, false);
|
||||||
|
|
|
@ -114,7 +114,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
children: function() {
|
children: function() {
|
||||||
if (this.children.length > 0) {
|
if (this.children && this.children.length > 0) {
|
||||||
this.childrenExpanded = true;
|
this.childrenExpanded = true;
|
||||||
} else if (this.childrenLoaded) {
|
} else if (this.childrenLoaded) {
|
||||||
this.item.has_children = false;
|
this.item.has_children = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue