fixed several small bugs concerning the statesystem - reload function works now as exspected
This commit is contained in:
parent
bab21887c3
commit
9b74439f85
@ -150,9 +150,9 @@ SYSTEM.prototype.back = function(){
|
||||
window.history.back();};
|
||||
SYSTEM.prototype.forwad = function(){
|
||||
window.history.forward();};
|
||||
SYSTEM.prototype.reload = function(){
|
||||
//window.location.reload();
|
||||
this.go_state(this.cur_state(),true);
|
||||
SYSTEM.prototype.reload = function(href){
|
||||
if('#!'+this.cur_state() === href){
|
||||
this.go_state(this.cur_state(),true);}
|
||||
};
|
||||
|
||||
SYSTEM.prototype.language = function(lang){
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
$(document).ready(function() {
|
||||
new SYSTEM('./api.php',42,'start');
|
||||
new SYSTEM('./sai.php',42,'start');
|
||||
|
||||
$('#sai_navbar ul li a, #project_navbar ul li a').click(function () {
|
||||
$('#sai_navbar li, #project_navbar li').each(function(){
|
||||
$(this).removeClass('active');});
|
||||
$(this).parent().addClass('active');
|
||||
system.reload();
|
||||
system.reload($(this).attr('href'));
|
||||
});
|
||||
|
||||
$('#sai_navbar li, #project_navbar li').each(function(){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user