CC-3174 : show builder

small modifications removing uneeded things.
This commit is contained in:
Naomi Aro 2012-02-02 23:58:36 +01:00
parent 7f9b497816
commit 11e7d813b6

View file

@ -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,