mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix #1122 allow widget CSS class to be changed to empty string
This commit is contained in:
parent
7d876a6fe0
commit
3c34e26cb7
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue