SAAS-317 : http://ryerson.airtime.pro/ is having issues with show/hide column in their library
missing single quote problem, updating column visible plugin.
This commit is contained in:
parent
dc6163b0cb
commit
b720086a4b
6 changed files with 918 additions and 894 deletions
|
@ -388,7 +388,7 @@ var AIRTIME = (function(AIRTIME) {
|
|||
|
||||
if (ele.bVisible) {
|
||||
advanceSearchDiv.append(
|
||||
"<div id='advanced_search_col_"+currentColId+" class='control-group'>" +
|
||||
"<div id='advanced_search_col_"+currentColId+"' class='control-group'>" +
|
||||
"<label class='control-label'"+labelStyle+">"+ele.sTitle+" : </label>" +
|
||||
"<div id='"+ele.mDataProp+"' class='controls "+inputClass+"'></div>" +
|
||||
"</div>");
|
||||
|
@ -422,15 +422,15 @@ var AIRTIME = (function(AIRTIME) {
|
|||
function setFilterElement(iColumn, bVisible){
|
||||
var actualId = colReorderMap[iColumn];
|
||||
var selector = "div#advanced_search_col_"+actualId;
|
||||
var $el = $(selector);
|
||||
|
||||
if (bVisible) {
|
||||
$(selector).show();
|
||||
$el.show();
|
||||
} else {
|
||||
$(selector).hide();
|
||||
$el.hide();
|
||||
}
|
||||
}
|
||||
|
||||
var currentColOrder = new Array();
|
||||
|
||||
oTable = $libTable.dataTable( {
|
||||
|
||||
// put hidden columns at the top to insure they can never be visible
|
||||
|
@ -678,7 +678,8 @@ var AIRTIME = (function(AIRTIME) {
|
|||
"sAlign": "right",
|
||||
"aiExclude": [0, 1, 2],
|
||||
"sSize": "css",
|
||||
"fnStateChange": setFilterElement
|
||||
"fnStateChange": setFilterElement,
|
||||
"buttonText": $.i18n._("Show / hide columns")
|
||||
},
|
||||
|
||||
"oColReorder": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue