also clear cache if dialog is closed via close button

This commit is contained in:
j 2012-03-19 16:57:36 +01:00
parent c4dcc423f6
commit 8185359061
2 changed files with 12 additions and 2 deletions

View file

@ -167,7 +167,6 @@ pandora.ui.logsDialog = function() {
width: 48
}).bindEvent({
click: function() {
Ox.Request.clearCache('findLogs');
that.close();
}
})
@ -212,6 +211,12 @@ pandora.ui.logsDialog = function() {
})
.appendTo(that.$element.find('.OxButtonsbar'));
that.superClose = that.close;
that.close = function() {
Ox.Request.clearCache('findLogs');
that.superClose();
};
function formatURL(url, line) {
return Ox.encodeHTMLEntities(url.split('?')[0]) + ':' + line;
}

View file

@ -406,7 +406,6 @@ pandora.ui.usersDialog = function() {
width: 48
}).bindEvent({
click: function() {
Ox.Request.clearCache('findUsers');
that.close();
}
})
@ -439,6 +438,12 @@ pandora.ui.usersDialog = function() {
})
.appendTo(that.$element.find('.OxButtonsbar'));
that.superClose = that.close;
that.close = function() {
Ox.Request.clearCache('findUsers');
that.superClose();
};
function getFormItemById(id) {
var ret;
Ox.forEach((