mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Fix ambiguity for selectors (now other button configuration are relyin on button[data-action] but we don't want it to affect the nodal window
This commit is contained in:
parent
3f8aff1a99
commit
1f4afe63e7
2 changed files with 3 additions and 3 deletions
|
@ -76,8 +76,8 @@
|
||||||
</header>
|
</header>
|
||||||
<div class="content"></div>
|
<div class="content"></div>
|
||||||
<footer>
|
<footer>
|
||||||
<button type="button" id="modal-cancel" data-action="cancel" data-y18n="cancel">Cancel</button>
|
<button type="button" id="modal-cancel" data-modal-action="cancel" data-y18n="cancel">Cancel</button>
|
||||||
<button type="button" id="modal-confirm" data-action="confirm" data-y18n="ok">OK</button>
|
<button type="button" id="modal-confirm" data-modal-action="confirm" data-y18n="ok">OK</button>
|
||||||
</footer>
|
</footer>
|
||||||
</div></div>
|
</div></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -424,7 +424,7 @@
|
||||||
.modal('hide');
|
.modal('hide');
|
||||||
|
|
||||||
// Do corresponding callback
|
// Do corresponding callback
|
||||||
if ($(this).data('action') == 'confirm') {
|
if ($(this).data('modal-action') == 'confirm') {
|
||||||
confirmCallback();
|
confirmCallback();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue