CC-3550 : Playlist Library -> Ctrl or Shift selection is not possible
This commit is contained in:
parent
5dfaa00c25
commit
2f712535ad
1 changed files with 18 additions and 13 deletions
|
@ -65,8 +65,8 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
};
|
};
|
||||||
|
|
||||||
libraryInit = function() {
|
libraryInit = function() {
|
||||||
oTable,
|
|
||||||
$libContent = $("#library_content"),
|
$libContent = $("#library_content");
|
||||||
$libTable = $libContent.find("table");
|
$libTable = $libContent.find("table");
|
||||||
|
|
||||||
var tableHeight = $libContent.height() - 130;
|
var tableHeight = $libContent.height() - 130;
|
||||||
|
@ -118,11 +118,7 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
url: "/usersettings/set-library-datatable",
|
url: "/usersettings/set-library-datatable",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {settings : oData, format: "json"},
|
data: {settings : oData, format: "json"},
|
||||||
dataType: "json",
|
dataType: "json"
|
||||||
success: function(){},
|
|
||||||
error: function (jqXHR, textStatus, errorThrown) {
|
|
||||||
var x;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
"fnStateLoad": function (oSettings) {
|
"fnStateLoad": function (oSettings) {
|
||||||
|
@ -136,9 +132,6 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
async: false,
|
async: false,
|
||||||
success: function(json){
|
success: function(json){
|
||||||
o = json.settings;
|
o = json.settings;
|
||||||
},
|
|
||||||
error: function (jqXHR, textStatus, errorThrown) {
|
|
||||||
var x;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -321,15 +314,27 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$libTable.find("tbody").on("click", "input[type=checkbox]", function() {
|
$libTable.find("tbody").on("click", "input[type=checkbox]", function(ev) {
|
||||||
|
|
||||||
var $cb = $(this),
|
var $cb = $(this),
|
||||||
$selectedCb,
|
$selectedCb,
|
||||||
|
$prev,
|
||||||
$tr;
|
$tr;
|
||||||
|
|
||||||
if ($cb.is(":checked")) {
|
if ($cb.is(":checked")) {
|
||||||
|
|
||||||
$tr = $cb.parents("tr");
|
$tr = $cb.parents("tr");
|
||||||
|
|
||||||
|
if (ev.shiftKey) {
|
||||||
|
$prev = $libTable.find("tbody").find("tr."+LIB_SELECTED_CLASS).eq(-1);
|
||||||
|
|
||||||
|
$prev.nextUntil($tr)
|
||||||
|
.addClass(LIB_SELECTED_CLASS)
|
||||||
|
.find("input:checkbox")
|
||||||
|
.attr("checked", true)
|
||||||
|
.end();
|
||||||
|
}
|
||||||
|
|
||||||
$tr.addClass(LIB_SELECTED_CLASS);
|
$tr.addClass(LIB_SELECTED_CLASS);
|
||||||
//checking to enable buttons
|
//checking to enable buttons
|
||||||
AIRTIME.button.enableButton("lib-button-delete");
|
AIRTIME.button.enableButton("lib-button-delete");
|
||||||
|
@ -350,8 +355,8 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
});
|
});
|
||||||
|
|
||||||
checkImportStatus();
|
checkImportStatus();
|
||||||
setInterval( checkImportStatus, 5000 );
|
setInterval(checkImportStatus, 5000);
|
||||||
setInterval( checkSCUploadStatus, 5000 );
|
setInterval(checkSCUploadStatus, 5000);
|
||||||
|
|
||||||
addQtipToSCIcons();
|
addQtipToSCIcons();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue