refactoring
This commit is contained in:
parent
4c582c14b5
commit
07fac33b9a
1 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue