|
@@ -4276,8 +4276,10 @@ $(document).ready(function () {
|
|
|
var widgetGridWidth = null;
|
|
var widgetGridWidth = null;
|
|
|
|
|
|
|
|
var setWidgetGridWidth = function () {
|
|
var setWidgetGridWidth = function () {
|
|
|
- // turns out Gridster generates CSS either with single or double quotes depending on the browser
|
|
|
|
|
- widgetGridWidth = typeof hueUtils.getStyleFromCSSClass('[data-sizex="1"]') !== 'undefined' ? parseInt(hueUtils.getStyleFromCSSClass('[data-sizex="1"]').width) : parseInt(hueUtils.getStyleFromCSSClass("[data-sizex='1']").width);
|
|
|
|
|
|
|
+ if (searchViewModel && searchViewModel.isGridster()) {
|
|
|
|
|
+ // turns out Gridster generates CSS either with single or double quotes depending on the browser
|
|
|
|
|
+ widgetGridWidth = typeof hueUtils.getStyleFromCSSClass('[data-sizex="1"]') !== 'undefined' ? parseInt(hueUtils.getStyleFromCSSClass('[data-sizex="1"]').width) : parseInt(hueUtils.getStyleFromCSSClass("[data-sizex='1']").width);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
setWidgetGridWidth();
|
|
setWidgetGridWidth();
|