enable unified routing
This commit is contained in:
parent
2360213901
commit
154f6b5fd8
133 changed files with 6988 additions and 7112 deletions
|
@ -433,8 +433,17 @@
|
|||
|
||||
});
|
||||
|
||||
var itemId;
|
||||
function setCurrentItemId(id) {
|
||||
itemId = id;
|
||||
}
|
||||
|
||||
function getCurrentItemId() {
|
||||
|
||||
if (itemId) {
|
||||
return itemId;
|
||||
}
|
||||
|
||||
var url = window.location.hash || window.location.href;
|
||||
|
||||
return getParameterByName('id', url);
|
||||
|
@ -450,7 +459,8 @@
|
|||
|
||||
return ApiClient.getRootFolder(Dashboard.getCurrentUserId());
|
||||
},
|
||||
getCurrentItemId: getCurrentItemId
|
||||
getCurrentItemId: getCurrentItemId,
|
||||
setCurrentItemId: setCurrentItemId
|
||||
};
|
||||
|
||||
})(jQuery, document, window);
|
Loading…
Add table
Add a link
Reference in a new issue