CC-3360 : timeline css
changed library search width calculation to be in library.js
This commit is contained in:
parent
da02bb7076
commit
7ab0289d12
|
@ -43,8 +43,11 @@ var AIRTIME = (function(AIRTIME) {
|
|||
|
||||
libraryInit = function() {
|
||||
var oTable,
|
||||
libContentDiv = $("#library_content");
|
||||
tableHeight = libContentDiv.height() - 140;
|
||||
libContentDiv = $("#library_content"),
|
||||
tableHeight = libContentDiv.height() - 140,
|
||||
libLength,
|
||||
libType,
|
||||
libFilter;
|
||||
|
||||
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();
|
||||
setInterval( checkImportStatus, 5000 );
|
||||
setInterval( checkSCUploadStatus, 5000 );
|
||||
|
|
|
@ -106,10 +106,7 @@ function buildScheduleDialog (json) {
|
|||
//subtract padding in pixels
|
||||
widgetWidth = width - 60,
|
||||
libWidth = Math.floor(widgetWidth * 0.5),
|
||||
builderWidth = Math.floor(widgetWidth * 0.5),
|
||||
libLength,
|
||||
libType,
|
||||
libFilter;
|
||||
builderWidth = Math.floor(widgetWidth * 0.5);
|
||||
|
||||
dialog.find("#library_content")
|
||||
.height(height - 115)
|
||||
|
@ -149,13 +146,6 @@ function buildScheduleDialog (json) {
|
|||
.css("max-height", height - 110 - 60);
|
||||
|
||||
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){
|
||||
|
|
Loading…
Reference in New Issue