mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Ensure that new units are displayed correctly on widget edit page
This commit is contained in:
parent
145bdab6c6
commit
8b8a0d0159
1 changed files with 14 additions and 0 deletions
|
|
@ -119,6 +119,20 @@ function doFillWidgetVars() {
|
|||
if(node.type == 'button') continue;
|
||||
if(node.name === '') continue;
|
||||
|
||||
if (node.name == 'widget_cache') {
|
||||
var widget_cache = selected_node.getAttribute(node.name);
|
||||
var widget_cache_unit = widget_cache.match(/[smhd]$/i);
|
||||
if (widget_cache_unit) {
|
||||
jQuery("#widget_cache_unit").val(widget_cache_unit);
|
||||
widget_cache = widget_cache.replace(/[smhd]$/i, "");
|
||||
}
|
||||
jQuery("#widget_cache").val(widget_cache);
|
||||
continue;
|
||||
}
|
||||
if (node.name == 'widget_cache_unit') {
|
||||
continue;
|
||||
}
|
||||
|
||||
var length = node.length;
|
||||
var type = node.type;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue