- Change login action prefix.

- Hide/Display buttons based on the selected items.
This commit is contained in:
Paulo Gustavo Veiga
2012-05-13 18:28:00 -03:00
parent df4100cbc4
commit 0e83d56b94
5 changed files with 66 additions and 30 deletions

View File

@@ -31,6 +31,7 @@ jQuery.fn.dataTableExt.selectAllMaps = function() {
$(this).prop("checked", false);
});
}
updateToolbar();
};
jQuery.fn.dataTableExt.getSelectedMapsIds = function() {
@@ -138,3 +139,17 @@ jQuery.fn.dialogForm = function(options) {
this.dialog(options);
};
// Update toolbar events ...
function updateToolbar() {
var selected = $("#mindmapListTable tbody input:checked").length > 0;
if (selected) {
$("#actionButtons").show();
} else {
$("#actionButtons").hide();
}
}