enable unified routing

This commit is contained in:
Luke Pulverenti 2016-03-16 01:33:31 -04:00
parent 2360213901
commit 154f6b5fd8
133 changed files with 6988 additions and 7112 deletions

View file

@ -1,4 +1,4 @@
(function ($, document, window) {
define(['historyManager'], function (historyManager) {
var currentItemId;
@ -26,12 +26,13 @@
var page = this;
MetadataEditor.setCurrentItemId(null);
$('.libraryTree', page).on('itemclicked', function (event, data) {
if (data.id != currentItemId) {
//$.mobile.urlHistory.ignoreNextHashChange = true;
window.location.hash = 'editItemMetadataPage?id=' + data.id;
MetadataEditor.setCurrentItemId(data.id);
reload(page);
}
});
@ -47,5 +48,4 @@
var page = this;
});
})(jQuery, document, window);
});