mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-23 23:35:00 +08:00
Select correct button name for assign modal
This commit is contained in:
parent
c00eec24bf
commit
f921ac75d8
1 changed files with 3 additions and 2 deletions
|
@ -451,7 +451,7 @@ var MyModuleRepositories = (function() {
|
|||
function renderFullViewAssignButtons() {
|
||||
var toolbar = FULL_VIEW_MODAL.find('.dataTables_wrapper .toolbar');
|
||||
toolbar.empty();
|
||||
if (FULL_VIEW_MODAL.data('rows-count') === 0) {
|
||||
if (parseInt(FULL_VIEW_MODAL.data('rows-count'), 10) === 0) {
|
||||
toolbar.append($('#my-module-repository-full-view-assign-button').html());
|
||||
} else {
|
||||
toolbar.append($('#my-module-repository-full-view-update-button').html());
|
||||
|
@ -567,9 +567,10 @@ var MyModuleRepositories = (function() {
|
|||
HelperModule.flashAlertMsg(data.flash, 'success');
|
||||
SELECTED_ROWS = {};
|
||||
$(FULL_VIEW_TABLE.table().container()).find('.dataTable')
|
||||
.attr('data-assigned-items-count', data.rows_count)
|
||||
.attr('data-assigned-items-count', data.rows_count);
|
||||
FULL_VIEW_TABLE.ajax.reload(null, false);
|
||||
reloadRepositoriesList();
|
||||
updateFullViewRowsCount(data.rows_count);
|
||||
renderFullViewAssignButtons();
|
||||
},
|
||||
error: function(data) {
|
||||
|
|
Loading…
Reference in a new issue