forked from 0x2620/pandora
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
|
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() {
|
function addDocuments() {
|
||||||
pandora.api.addDocument({
|
pandora.api.addDocument({
|
||||||
item: pandora.user.ui.item,
|
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;
|
return that;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue