mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-20 22:03:03 +08:00
Fix project pages JS selectors [SCI-8292]
This commit is contained in:
parent
9455c0e393
commit
eb243ca772
2 changed files with 5 additions and 5 deletions
|
@ -306,7 +306,7 @@ var ProjectsIndex = (function() {
|
|||
}
|
||||
}
|
||||
|
||||
$('#content-wrapper').on('click', '.project-folder-link', function(event) {
|
||||
$('#projectsWrapper').on('click', '.project-folder-link', function(event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
$(cardsWrapper).data('projectsCardsUrl', $(this).data('projectsCardsUrl'));
|
||||
|
|
|
@ -277,7 +277,7 @@
|
|||
}
|
||||
|
||||
function appendActionModal(modal) {
|
||||
$('#content-wrapper').append(modal);
|
||||
$('#projectShowWrapper').append(modal);
|
||||
modal.modal('show');
|
||||
modal.find('.selectpicker').selectpicker();
|
||||
// Remove modal when it gets closed
|
||||
|
@ -362,11 +362,11 @@
|
|||
}
|
||||
|
||||
function init() {
|
||||
$('#content-wrapper').on('ajax:success', '.experiment-action-link', function(ev, data) {
|
||||
$('#projectShowWrapper').on('ajax:success', '.experiment-action-link', function(ev, data) {
|
||||
appendActionModal($(data.html));
|
||||
});
|
||||
|
||||
$('#content-wrapper')
|
||||
$('#projectShowWrapper')
|
||||
.on('ajax:beforeSend', '.experiment-action-form', function() {
|
||||
animateSpinner();
|
||||
})
|
||||
|
@ -389,7 +389,7 @@
|
|||
initEditMoveDuplicateToolbarButton();
|
||||
initNewExperimentToolbarButton();
|
||||
initSelectAllCheckbox();
|
||||
AsyncDropdown.init($('#content-wrapper'));
|
||||
AsyncDropdown.init($('#projectShowWrapper'));
|
||||
}
|
||||
|
||||
init();
|
||||
|
|
Loading…
Reference in a new issue