fixing select all/none button
This commit is contained in:
parent
a4e9cd1add
commit
846c90bc8f
|
@ -269,9 +269,9 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
$.i18n._("Select")+" <span class='caret'></span>" +
|
$.i18n._("Select")+" <span class='caret'></span>" +
|
||||||
"</button>" +
|
"</button>" +
|
||||||
"<ul class='dropdown-menu'>" +
|
"<ul class='dropdown-menu'>" +
|
||||||
"<li id='his-select-page'><a href='#'>"+$.i18n._("Select this page")+"</a></li>" +
|
"<li class='his-select-page'><a href='#'>"+$.i18n._("Select this page")+"</a></li>" +
|
||||||
"<li id='his-dselect-page'><a href='#'>"+$.i18n._("Deselect this page")+"</a></li>" +
|
"<li class='his-dselect-page'><a href='#'>"+$.i18n._("Deselect this page")+"</a></li>" +
|
||||||
"<li id='his-dselect-all'><a href='#'>"+$.i18n._("Deselect all")+"</a></li>" +
|
"<li class='his-dselect-all'><a href='#'>"+$.i18n._("Deselect all")+"</a></li>" +
|
||||||
"</ul>" +
|
"</ul>" +
|
||||||
"</div>");
|
"</div>");
|
||||||
|
|
||||||
|
@ -397,10 +397,6 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
$toolbar = $historyTableDiv.parents(".dataTables_wrapper").find(".fg-toolbar:first");
|
$toolbar = $historyTableDiv.parents(".dataTables_wrapper").find(".fg-toolbar:first");
|
||||||
createToolbarButtons($toolbar);
|
createToolbarButtons($toolbar);
|
||||||
|
|
||||||
$("#his-select-page").click(selectCurrentPage);
|
|
||||||
$("#his-dselect-page").click(deselectCurrentPage);
|
|
||||||
$("#his-dselect-all").click(emptySelectedLogItems);
|
|
||||||
|
|
||||||
return oTable;
|
return oTable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -661,6 +657,10 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$historyContentDiv.on("click", ".his-select-page", selectCurrentPage);
|
||||||
|
$historyContentDiv.on("click", ".his-dselect-page", deselectCurrentPage);
|
||||||
|
$historyContentDiv.on("click", ".his-dselect-all", emptySelectedLogItems);
|
||||||
|
|
||||||
$historyContentDiv.on("click", "#his_trash", function(ev){
|
$historyContentDiv.on("click", "#his_trash", function(ev){
|
||||||
var items = getSelectedLogItems(),
|
var items = getSelectedLogItems(),
|
||||||
url = baseUrl+"playouthistory/delete-list-items";
|
url = baseUrl+"playouthistory/delete-list-items";
|
||||||
|
|
Loading…
Reference in New Issue