- Change to start using bootstrap grid
This commit is contained in:
@@ -142,7 +142,8 @@ jQuery.fn.dialogForm = function (options) {
|
||||
console.log(errorThrown);
|
||||
console.log(jqXHR);
|
||||
dialogElem.modal('hide');
|
||||
$('#messagesPanel div').text(errorThrown).parent().show();
|
||||
$('#messagesPanel div div').text(errorThrown);
|
||||
$('#messagesPanel').show()
|
||||
}
|
||||
var acceptBtn = $('#' + containerId + ' .btn-accept');
|
||||
acceptBtn.button('reset');
|
||||
@@ -168,22 +169,22 @@ function updateStatusToolbar() {
|
||||
$("#mindmapListTable tbody input:checked").parent().parent().addClass('row-selected');
|
||||
$("#mindmapListTable tbody input:not(:checked)").parent().parent().removeClass('row-selected');
|
||||
|
||||
$('#buttonsToolbar').find('.act-single').hide().end().find('.act-multiple').hide();
|
||||
$('.buttonsToolbar').find('.act-single').hide().end().find('.act-multiple').hide();
|
||||
|
||||
var tableElem = $('#mindmapListTable');
|
||||
var selectedRows = tableElem.dataTableExt.getSelectedRows();
|
||||
|
||||
if (selectedRows.length > 0) {
|
||||
if (selectedRows.length == 1) {
|
||||
$('#buttonsToolbar').find('.act-single').show().end().find('.act-multiple').show();
|
||||
$('.buttonsToolbar').find('.act-single').show().end().find('.act-multiple').show();
|
||||
|
||||
// Can be executed by the owner ?
|
||||
var rowData = tableElem.dataTable().fnGetData(selectedRows[0]);
|
||||
if (rowData.role != 'owner') {
|
||||
$("#buttonsToolbar").find('#publishBtn').hide().end().find('#shareBtn').hide().end().find('#renameBtn').hide();
|
||||
$(".buttonsToolbar").find('#publishBtn').hide().end().find('#shareBtn').hide().end().find('#renameBtn').hide();
|
||||
}
|
||||
} else {
|
||||
$("#buttonsToolbar .act-multiple").show();
|
||||
$(".buttonsToolbar .act-multiple").show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user