fixing old urls (/<type>-<id>) and redirect on home page on logon page

(until 1.0.0)
This commit is contained in:
2014-06-15 20:49:34 +02:00
parent b62d5df15c
commit 1a52a183e0
5 changed files with 32 additions and 10 deletions

15
jquery/databap.js vendored
View File

@@ -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)