update PHP Excel
This commit is contained in:
@@ -4,7 +4,7 @@ function Pedidor(asGlobals)
|
||||
this.consts = asGlobals.consts;
|
||||
this.consts.hash_sep = '-';
|
||||
this.consts.default_page = 'orders';
|
||||
this.consts.title = 'Pedidor';
|
||||
this.consts.title = 'Micro Negrin';
|
||||
|
||||
this.init = function()
|
||||
{
|
||||
@@ -69,9 +69,9 @@ function Pedidor(asGlobals)
|
||||
this.onHashChange = function()
|
||||
{
|
||||
var asHash = self.getHash();
|
||||
var sDefaultPage = self.vars('log_in')?self.consts.default_page:'logon';
|
||||
if(asHash.hash !='' && asHash.page != '') self.switchPage(asHash); //page switching
|
||||
else if(self.vars('page')=='') self.setHash(sDefaultPage); //first page
|
||||
if(!self.vars('log_in') && asHash.page != 'logon') self.setHash('logon');
|
||||
else if(asHash.hash !='' && asHash.page != '') self.switchPage(asHash); //page switching
|
||||
else if(self.vars('page')=='') self.setHash(self.consts.default_page); //first page
|
||||
};
|
||||
|
||||
this.resetTmpFunctions = function()
|
||||
@@ -154,6 +154,13 @@ function Pedidor(asGlobals)
|
||||
|
||||
/* Page Switching */
|
||||
|
||||
this.loadHome = function()
|
||||
{
|
||||
self.vars('log_in', true);
|
||||
$('#header, #menu, #footer').fadeIn('slow');
|
||||
oPedidor.setHash(oPedidor.consts.default_page);
|
||||
}
|
||||
|
||||
this.getActionLink = function(sAction, oVars)
|
||||
{
|
||||
if(!oVars) oVars = {};
|
||||
@@ -184,7 +191,7 @@ function Pedidor(asGlobals)
|
||||
|
||||
//Update Page Title
|
||||
var sDetail = asHash.items[0] || '';
|
||||
document.title = self.consts.title+' - '+sPageName+' '+sDetail;
|
||||
document.title = self.consts.title+' - '+self.consts.page_to_hash[sPageName].replace('_', ' ')+' '+sDetail;
|
||||
|
||||
//Replacing DOM
|
||||
var $Dom = $(self.consts.pages[sPageName]);
|
||||
|
||||
Reference in New Issue
Block a user