fixing old urls (/<type>-<id>) and redirect on home page on logon page
(until 1.0.0)
This commit is contained in:
15
jquery/databap.js
vendored
15
jquery/databap.js
vendored
@@ -64,7 +64,7 @@ function Databap()
|
||||
$(window).bind('hashchange', self.onHashChange);
|
||||
|
||||
//Init first page
|
||||
if(self.hash()=='') self.goToInternalLink(self.consts.default_hash);
|
||||
if(self.hash()=='') self.goToInternalLink(self.consts.default_hash, self.consts.default_id); //Fix for old links
|
||||
else self.onHashChange();
|
||||
|
||||
//Load cache
|
||||
@@ -866,11 +866,14 @@ function Databap()
|
||||
|
||||
this.setScrollBarSize = function(iBoxSize)
|
||||
{
|
||||
var $Box = self.tmp('scrollbar').find('.scrollbar_box');
|
||||
if(iBoxSize=='optimize') self.maximizeElem($Box, true);
|
||||
else if(iBoxSize=='maximize') self.maximizeElem($Box, false);
|
||||
else $Box.height(iBoxSize);
|
||||
self.updateScrollBar();
|
||||
if(self.tmp('scrollbar'))
|
||||
{
|
||||
var $Box = self.tmp('scrollbar').find('.scrollbar_box');
|
||||
if(iBoxSize=='optimize') self.maximizeElem($Box, true);
|
||||
else if(iBoxSize=='maximize') self.maximizeElem($Box, false);
|
||||
else $Box.height(iBoxSize);
|
||||
self.updateScrollBar();
|
||||
}
|
||||
};
|
||||
|
||||
this.updateScrollBar = function(sPos)
|
||||
|
||||
Reference in New Issue
Block a user