CC-3174 : show builder
small modifications removing uneeded things.
This commit is contained in:
parent
7f9b497816
commit
11e7d813b6
1 changed files with 1 additions and 9 deletions
|
@ -173,8 +173,6 @@ $(document).ready(function() {
|
||||||
$(nRow).addClass("sb-not-allowed");
|
$(nRow).addClass("sb-not-allowed");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nRow;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fnRemoveSelectedItems = function() {
|
fnRemoveSelectedItems = function() {
|
||||||
|
@ -201,8 +199,6 @@ $(document).ready(function() {
|
||||||
oTable = tableDiv.dataTable( {
|
oTable = tableDiv.dataTable( {
|
||||||
"aoColumns": [
|
"aoColumns": [
|
||||||
/* checkbox */ {"mDataProp": "checkbox", "sTitle": "<input type='checkbox' name='sb_cb_all'>", "sWidth": "15px"},
|
/* checkbox */ {"mDataProp": "checkbox", "sTitle": "<input type='checkbox' name='sb_cb_all'>", "sWidth": "15px"},
|
||||||
// /* scheduled id */{"mDataProp": "id", "sTitle": "id"},
|
|
||||||
// /* instance */{"mDataProp": "instance", "sTitle": "si_id"},
|
|
||||||
/* starts */{"mDataProp": "starts", "sTitle": "Airtime"},
|
/* starts */{"mDataProp": "starts", "sTitle": "Airtime"},
|
||||||
/* ends */{"mDataProp": "ends", "sTitle": "Off Air"},
|
/* ends */{"mDataProp": "ends", "sTitle": "Off Air"},
|
||||||
/* runtime */{"mDataProp": "runtime", "sTitle": "Runtime"},
|
/* runtime */{"mDataProp": "runtime", "sTitle": "Runtime"},
|
||||||
|
@ -211,8 +207,6 @@ $(document).ready(function() {
|
||||||
/* album */{"mDataProp": "album", "sTitle": "Album"}
|
/* album */{"mDataProp": "album", "sTitle": "Album"}
|
||||||
],
|
],
|
||||||
|
|
||||||
"asStripClasses": [ 'odd' ],
|
|
||||||
|
|
||||||
"bJQueryUI": true,
|
"bJQueryUI": true,
|
||||||
"bSort": false,
|
"bSort": false,
|
||||||
"bFilter": false,
|
"bFilter": false,
|
||||||
|
@ -362,6 +356,7 @@ $(document).ready(function() {
|
||||||
//item was dragged in
|
//item was dragged in
|
||||||
if (origRow !== undefined) {
|
if (origRow !== undefined) {
|
||||||
oItemData = origRow.data("aData");
|
oItemData = origRow.data("aData");
|
||||||
|
origRow = undefined;
|
||||||
fnAdd();
|
fnAdd();
|
||||||
}
|
}
|
||||||
//item was reordered.
|
//item was reordered.
|
||||||
|
@ -369,13 +364,10 @@ $(document).ready(function() {
|
||||||
oItemData = ui.item.data("aData");
|
oItemData = ui.item.data("aData");
|
||||||
fnMove();
|
fnMove();
|
||||||
}
|
}
|
||||||
|
|
||||||
origRow = undefined;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
placeholder: "placeholder show-builder-placeholder",
|
placeholder: "placeholder show-builder-placeholder",
|
||||||
forceHelperSize: true,
|
|
||||||
forcePlaceholderSize: true,
|
forcePlaceholderSize: true,
|
||||||
items: 'tr:not(:first):not(.sb-header):not(.sb-footer):not(.sb-not-allowed):not(.sb-empty)',
|
items: 'tr:not(:first):not(.sb-header):not(.sb-footer):not(.sb-not-allowed):not(.sb-empty)',
|
||||||
receive: fnReceive,
|
receive: fnReceive,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue