Merge branch '2.5.x' into saas
Conflicts: airtime_mvc/locale/hy/LC_MESSAGES/airtime.po airtime_mvc/locale/ja_JP/LC_MESSAGES/airtime.po
This commit is contained in:
commit
3c064b13a9
11 changed files with 10 additions and 9771 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load diff
Binary file not shown.
Binary file not shown.
|
@ -316,15 +316,24 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
};
|
};
|
||||||
|
|
||||||
mod.fnDeleteItems = function(aMedia) {
|
mod.fnDeleteItems = function(aMedia) {
|
||||||
|
|
||||||
|
//Prevent the user from spamming the delete button while the AJAX request is in progress
|
||||||
|
AIRTIME.button.disableButton("btn-group #sb-trash", false);
|
||||||
|
//Hack to immediately show the "Processing" div in DataTables to give the user some sort of feedback.
|
||||||
|
$(".dataTables_processing").css('visibility','visible');
|
||||||
|
|
||||||
$.post(baseUrl+"library/delete",
|
$.post(baseUrl+"library/delete",
|
||||||
{"format": "json", "media": aMedia},
|
{"format": "json", "media": aMedia},
|
||||||
function(json){
|
function(json){
|
||||||
if (json.message !== undefined) {
|
if (json.message !== undefined) {
|
||||||
alert(json.message);
|
alert(json.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
chosenItems = {};
|
chosenItems = {};
|
||||||
oTable.fnStandingRedraw();
|
oTable.fnStandingRedraw();
|
||||||
|
|
||||||
|
//Re-enable the delete button
|
||||||
|
AIRTIME.button.enableButton("btn-group #sb-trash", false);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue