Little improvements in #instance
This commit is contained in:
parent
3646579d15
commit
10112d1485
|
@ -62,6 +62,7 @@ window.view.instance = {
|
|||
},
|
||||
load_content: function(content, hashload) {
|
||||
hashload = hashload === undefined ? false : hashload;
|
||||
E.element('#window-instance #container').innerHTML = '';
|
||||
switch (content) {
|
||||
case 'home':
|
||||
window.location.hash = '#home';
|
||||
|
@ -71,7 +72,6 @@ window.view.instance = {
|
|||
default:
|
||||
if (hashload === true)
|
||||
return set_hash_argument('content', content);
|
||||
E.element('#window-instance #container').innerHTML = '';
|
||||
return window.view.instance
|
||||
.load[content.replaceAll('-','_')]();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue