2016-02-01 09:49:18 -05:00
|
|
|
/**
|
2016-02-02 11:34:03 -05:00
|
|
|
* Event handlers
|
2016-02-01 09:49:18 -05:00
|
|
|
*/
|
2016-02-08 10:57:44 -05:00
|
|
|
((ac) => {
|
2016-02-01 09:49:18 -05:00
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
// Close event for messages
|
2016-02-08 10:57:44 -05:00
|
|
|
ac.on('header', 'click', '.message', function () {
|
2016-02-16 12:07:01 -05:00
|
|
|
ac.hide(this);
|
2016-02-01 09:49:18 -05:00
|
|
|
});
|
|
|
|
|
2016-04-14 15:16:13 -04:00
|
|
|
// Confirm deleting of list or library items
|
2016-04-14 17:00:34 -04:00
|
|
|
ac.on('form.js-delete', 'submit', function (event) {
|
2016-04-14 15:16:13 -04:00
|
|
|
let proceed = confirm("Are you ABSOLUTELY SURE you want to delete this item?");
|
|
|
|
|
|
|
|
if (proceed === false) {
|
|
|
|
event.preventDefault();
|
|
|
|
event.stopPropagation();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2016-02-08 10:57:44 -05:00
|
|
|
})(AnimeClient);
|