CC-3174 : showbuilder

check into issue that propel doesn't return DateTime object in UTC.
using table tools to keep track of selected rows.
This commit is contained in:
Naomi Aro 2012-01-31 18:59:27 +01:00
parent 3f3117cf0e
commit fbda0e733b
16 changed files with 3999 additions and 437 deletions

View file

@ -9,7 +9,7 @@ function fnLibraryTableDrawCallback() {
addLibraryItemEvents();
addMetadataQtip();
//saveNumEntriesSetting();
setupGroupActions();
//setupGroupActions();
}
function addLibraryItemEvents() {
@ -20,16 +20,23 @@ function addLibraryItemEvents() {
cursor: 'pointer'
});
/*
$('#library_display tbody tr td').not('[class=library_checkbox]')
.jjmenu("click",
[{get:"/Library/context-menu/format/json/id/#id#/type/#type#"}],
{id: getId, type: getType},
{xposition: "mouse", yposition: "mouse"});
*/
}
function setupLibraryToolbar() {
$("div.library_toolbar").html('<span class="fg-button ui-button ui-state-default" id="library_order_reset">Reset Order</span>' +
'<span class="fg-button ui-button ui-state-default ui-state-disabled" id="library_group_delete">Delete</span>' +
'<span class="fg-button ui-button ui-state-default ui-state-disabled" id="library_group_add">Add</span>');
//[0] = button text
//[1] = id
//[2] = enabled
var aButtons = [["Reset Order", "library_order_reset", true],
["Delete", "library_group_delete", false],
["Add", "library_group_add", false]];
addToolBarButtonsLibrary(aButtons);
}

View file

@ -21,14 +21,33 @@ function addLibraryItemEvents() {
cursor: 'pointer',
connectToSortable: '#show_builder_table'
});
$('#library_display tbody tr td').not('[class=library_checkbox]')
.jjmenu("click",
[{get:"/Library/context-menu/format/json/id/#id#/type/#type#"}],
{id: getId, type: getType},
{xposition: "mouse", yposition: "mouse"});
}
function setupLibraryToolbar() {
var aButtons,
fnTest,
fnAddSelectedItems;
fnTest = function() {
alert("hi");
};
fnAddSelectedItems = function() {
var oTT = TableTools.fnGetInstance('show_builder_table'),
aData = oTT.fnGetSelectedData(),
i,
length = aData.length;
for (i=0, i<length; i+=1;) {
var x;
}
};
//[0] = button text
//[1] = id
//[2] = enabled
aButtons = [["Reset Order", "library_order_reset", true, fnTest],
["Delete", "library_group_delete", false, fnTest],
["Add", "library_group_add", false, fnTest]];
addToolBarButtonsLibrary(aButtons);
}