Fix #1122 allow widget CSS class to be changed to empty string

This commit is contained in:
Kijin Sung 2018-12-13 12:10:21 +09:00
parent 7d876a6fe0
commit 3c34e26cb7

View file

@ -747,7 +747,11 @@ function doApplyWidgetSize(fo_obj) {
var $selectedSizeWidget = jQuery(selectedSizeWidget);
var css_class = $form.find('#css_class').val();
if(css_class) $selectedSizeWidget.attr('css_class', css_class);
if(css_class) {
$selectedSizeWidget.attr('css_class', css_class);
} else {
$selectedSizeWidget.attr('css_class', '');
}
var width = _getSize(fo_obj.width.value);
if(width) selectedSizeWidget.style.width = width;