CC-3360 : timeline css
changed library search width calculation to be in library.js
This commit is contained in:
parent
da02bb7076
commit
7ab0289d12
2 changed files with 12 additions and 13 deletions
|
@ -43,8 +43,11 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
|
|
||||||
libraryInit = function() {
|
libraryInit = function() {
|
||||||
var oTable,
|
var oTable,
|
||||||
libContentDiv = $("#library_content");
|
libContentDiv = $("#library_content"),
|
||||||
tableHeight = libContentDiv.height() - 140;
|
tableHeight = libContentDiv.height() - 140,
|
||||||
|
libLength,
|
||||||
|
libType,
|
||||||
|
libFilter;
|
||||||
|
|
||||||
oTable = $('#library_display').dataTable( {
|
oTable = $('#library_display').dataTable( {
|
||||||
|
|
||||||
|
@ -331,6 +334,12 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//calculate dynamically width for the library search input.
|
||||||
|
libLength = libContentDiv.find("#library_display_length");
|
||||||
|
libType = libContentDiv.find("#library_display_type");
|
||||||
|
libFilter = libContentDiv.find("#library_display_filter");
|
||||||
|
libFilter.find("input").width(libFilter.width() - libType.width() - libLength.width() - 80);
|
||||||
|
|
||||||
checkImportStatus();
|
checkImportStatus();
|
||||||
setInterval( checkImportStatus, 5000 );
|
setInterval( checkImportStatus, 5000 );
|
||||||
setInterval( checkSCUploadStatus, 5000 );
|
setInterval( checkSCUploadStatus, 5000 );
|
||||||
|
|
|
@ -106,10 +106,7 @@ function buildScheduleDialog (json) {
|
||||||
//subtract padding in pixels
|
//subtract padding in pixels
|
||||||
widgetWidth = width - 60,
|
widgetWidth = width - 60,
|
||||||
libWidth = Math.floor(widgetWidth * 0.5),
|
libWidth = Math.floor(widgetWidth * 0.5),
|
||||||
builderWidth = Math.floor(widgetWidth * 0.5),
|
builderWidth = Math.floor(widgetWidth * 0.5);
|
||||||
libLength,
|
|
||||||
libType,
|
|
||||||
libFilter;
|
|
||||||
|
|
||||||
dialog.find("#library_content")
|
dialog.find("#library_content")
|
||||||
.height(height - 115)
|
.height(height - 115)
|
||||||
|
@ -149,13 +146,6 @@ function buildScheduleDialog (json) {
|
||||||
.css("max-height", height - 110 - 60);
|
.css("max-height", height - 110 - 60);
|
||||||
|
|
||||||
dialog.dialog('open');
|
dialog.dialog('open');
|
||||||
|
|
||||||
//calculate dynamically width for the library search input.
|
|
||||||
libLength = dialog.find("#library_display_length");
|
|
||||||
libType = dialog.find("#library_display_type");
|
|
||||||
libFilter = dialog.find("#library_display_filter");
|
|
||||||
|
|
||||||
libFilter.find("input").width(libFilter.width() - libType.width() - libLength.width() - 80);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildContentDialog (json){
|
function buildContentDialog (json){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue