mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
- Fix Javascript Error on some browsers (Epiphany, Chrome) that made the Web UI unusable
This commit is contained in:
@@ -40,8 +40,10 @@ window.addEvent('domready', function(){
|
|||||||
'background': '#fff',
|
'background': '#fff',
|
||||||
'visibility': 'visible'
|
'visibility': 'visible'
|
||||||
});
|
});
|
||||||
var filt_w = Cookie.read('filters_width').toInt();
|
var filt_w = Cookie.read('filters_width');
|
||||||
if(!$defined(filt_w))
|
if($defined(filt_w))
|
||||||
|
filt_w = filt_w.toInt();
|
||||||
|
else
|
||||||
filt_w = 120;
|
filt_w = 120;
|
||||||
new MochaUI.Column({
|
new MochaUI.Column({
|
||||||
id: 'filtersColumn',
|
id: 'filtersColumn',
|
||||||
@@ -73,8 +75,10 @@ window.addEvent('domready', function(){
|
|||||||
onResize: saveColumnSizes,
|
onResize: saveColumnSizes,
|
||||||
height: null
|
height: null
|
||||||
});
|
});
|
||||||
var prop_h = Cookie.read('properties_height').toInt();
|
var prop_h = Cookie.read('properties_height');
|
||||||
if(!$defined(prop_h))
|
if($defined(prop_h))
|
||||||
|
prop_h = prop_h.toInt();
|
||||||
|
else
|
||||||
prop_h = 200;
|
prop_h = 200;
|
||||||
new MochaUI.Panel({
|
new MochaUI.Panel({
|
||||||
id: 'properties',
|
id: 'properties',
|
||||||
|
|||||||
Reference in New Issue
Block a user