Skip to content
Snippets Groups Projects
Commit 7e85a8bd authored by srosse's avatar srosse
Browse files

OO-531: fix an javascript error with IE8 and the resize of the 3 columns layout

parent 32893bcf
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,7 @@ jQuery().ready(function() { ...@@ -53,6 +53,7 @@ jQuery().ready(function() {
}).bind( "resize", resize_right); }).bind( "resize", resize_right);
function resize_right(event, ui) { function resize_right(event, ui) {
if(ui == null) return;
var width = ui.size.width; var width = ui.size.width;
var leftWidth = jQuery("#b_col2").width(); var leftWidth = jQuery("#b_col2").width();
var contWidth = jQuery('#b_main').width() - leftWidth; var contWidth = jQuery('#b_main').width() - leftWidth;
...@@ -76,6 +77,7 @@ jQuery().ready(function() { ...@@ -76,6 +77,7 @@ jQuery().ready(function() {
}).bind( "resize", resize_left); }).bind( "resize", resize_left);
function resize_left(event, ui) { function resize_left(event, ui) {
if(ui == null) return;
var width = ui.size.width; var width = ui.size.width;
var rightWidth = jQuery("#b_col1").width(); var rightWidth = jQuery("#b_col1").width();
var contWidth = jQuery('#b_main').width() - rightWidth; var contWidth = jQuery('#b_main').width() - rightWidth;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment