mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 00:29:58 +09:00
Fix #562 javascript error in widget setup page
This commit is contained in:
parent
19592b1bd9
commit
95d34eb0bf
1 changed files with 2 additions and 2 deletions
|
|
@ -121,10 +121,10 @@ function doFillWidgetVars() {
|
||||||
|
|
||||||
if (node.name == 'widget_cache') {
|
if (node.name == 'widget_cache') {
|
||||||
var widget_cache = selected_node.getAttribute(node.name);
|
var widget_cache = selected_node.getAttribute(node.name);
|
||||||
var widget_cache_unit = widget_cache.match(/[smhd]$/i);
|
var widget_cache_unit = widget_cache ? widget_cache.match(/[smhd]$/i) : 'm';
|
||||||
if (widget_cache_unit) {
|
if (widget_cache_unit) {
|
||||||
jQuery("#widget_cache_unit").val(widget_cache_unit);
|
jQuery("#widget_cache_unit").val(widget_cache_unit);
|
||||||
widget_cache = widget_cache.replace(/[smhd]$/i, "");
|
widget_cache = widget_cache ? widget_cache.replace(/[smhd]$/i, "") : 0;
|
||||||
}
|
}
|
||||||
jQuery("#widget_cache").val(widget_cache);
|
jQuery("#widget_cache").val(widget_cache);
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue