1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00
This commit is contained in:
Adolfo Gómez 2013-12-08 07:31:00 +00:00
parent f3e7ec3be9
commit 828247831b
2 changed files with 23 additions and 4 deletions

View File

@ -105,6 +105,7 @@ gui.providers.link = function(event) {
// Giving the name compossed with type, will ensure that only styles will be reattached once
var services = new GuiElement(api.providers.detail(id, 'services'), 'services-'+selected[0].type);
var tmpLogTable;
var servicesTable = services.table({
container : 'services-placeholder',
rowSelect : 'single',
@ -114,9 +115,10 @@ gui.providers.link = function(event) {
clearDetailLog();
detailLogTable = services.logTable(sId, {
tmpLogTable = services.logTable(sId, {
container: 'services-log-placeholder',
onLoad: function() {
detailLogTable = tmpLogTable;
gui.tools.unblockUI();
}
});
@ -246,10 +248,28 @@ gui.authenticators.link = function(event) {
gui.tools.unblockUI();
},
});
var tmpLogTable;
// Use defered rendering for users, this table can be "huge"
var usrTable = user.table({
container : 'users-placeholder',
rowSelect : 'single',
onRowSelect: function(uselected) {
gui.tools.blockUI();
var uId = uselected[0].id;
clearDetailLog();
tmpLogTable = user.logTable(uId, {
container: 'users-log-placeholder',
onLoad: function() {
detailLogTable = tmpLogTable;
gui.tools.unblockUI();
}
});
},
onRowDeselect : function() {
clearDetailLog();
},
buttons : [ 'new', 'edit', 'delete', 'xls' ],
deferedRender: true,
scrollToTable : false,

View File

@ -111,10 +111,9 @@
gui.launchModal('<b class="text-'+ type + '">' + gettext('Message') + '</b>', '<span class="text-' + type + '">' + message + '</span>', {actionButton: ' '});
};
gui.failRequestModalFnc = function(title, unblock) {
gui.failRequestModalFnc = function(title) {
return function(jqXHR, textStatus, errorThrown) { // fail on put
if( unblock )
gui.tools.unblockUI();
gui.tools.unblockUI();
gui.launchModal('<b class="text-danger">' + title + '</b>', jqXHR.responseText, { actionButton: ' '});
};
};