refactoring

This commit is contained in:
rolux 2014-12-22 22:21:42 +00:00
parent 4c582c14b5
commit 07fac33b9a

View file

@ -52,6 +52,14 @@ pandora.ui.documentsDialog = function() {
resize: $content.updateSize
});
that.superClose = that.close;
that.close = function() {
Ox.Request.clearCache('findDocuments');
that.superClose();
// needed in documentDialog to determine if isItemView
delete pandora.$ui.documentsDialog;
};
function addDocuments() {
pandora.api.addDocument({
item: pandora.user.ui.item,
@ -67,14 +75,6 @@ pandora.ui.documentsDialog = function() {
});
}
that.superClose = that.close;
that.close = function() {
Ox.Request.clearCache('findDocuments');
that.superClose();
// needed in documentDialog to determine if isItemView
delete pandora.$ui.documentsDialog;
};
return that;
};