Fix login redirection when there is not enoght permisions.

This commit is contained in:
Paulo Gustavo Veiga
2012-04-05 00:25:34 -03:00
parent bed005afef
commit 4c634fefec
3 changed files with 9 additions and 9 deletions

View File

@@ -109,8 +109,6 @@
// Finally, submit map ...
form.submit();
MooDialog.Request.active.close();
});

View File

@@ -26,13 +26,13 @@ function buildDesigner(options) {
// Register load events ...
designer = new mindplot.Designer(options, container);
designer.addEvent('loadSuccess', function() {
window.waitDialog.close.delay(1000,window.waitDialog);
window.waitDialog.close.delay(1000, window.waitDialog);
window.waitDialog = null;
});
window.onerror = function(e) {
if (window.waitDialog) {
window.waitDialog.close.delay(1000,window.waitDialog);
window.waitDialog.close.delay(1000, window.waitDialog);
window.waitDialog = null;
}
errorDialog.show();
@@ -56,7 +56,7 @@ function buildDesigner(options) {
// Register toolbar event ...
if ($('toolbar')) {
var menu = new mindplot.widget.Menu(designer, 'toolbar', "");
var menu = new mindplot.widget.Menu(designer, 'toolbar', options.mapId, "");
// If a node has focus, focus can be move to another node using the keys.
designer._cleanScreen = function() {