From ba5bea09f0209e53d3aafd2f2d6a7c8fc489383f Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Wed, 13 Jun 2012 08:37:07 +0000 Subject: [PATCH] fix #833 (JS error when collapsing sidebar in timelines view) --- source/Ox.UI/js/List/InfoList.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/List/InfoList.js b/source/Ox.UI/js/List/InfoList.js index 74b282fa..d19e7432 100644 --- a/source/Ox.UI/js/List/InfoList.js +++ b/source/Ox.UI/js/List/InfoList.js @@ -41,7 +41,7 @@ Ox.InfoList = function(options, self) { var width = getItemWidth(); $('.OxInfoElement').each(function() { var $parent = $(this).parent(), - id = parseInt(/OxId(.*?)$/.exec(this.className)[1]); + id = parseInt(/OxId(.*?)$/.exec(this.className)[1], 10); $parent.css({width: width - 144}); $parent.parent().css({width: width - 144}); $parent.parent().parent().css({width: width - 8}); @@ -149,7 +149,7 @@ Ox.InfoList = function(options, self) { .addClass('OxInfoElement'); data.info.css && $element.css(data.info.css); data.info.events && $element.bindEvent(data.info.events); - $element.addClass('OxId' + $element.id); // fixme: needed? + $element.addClass('OxId' + $element.oxid); // fixme: needed? $infobox.append($element); } return $item;