other js fixes, related to widgets; blockparser still does not work

This commit is contained in:
real_nowhereman 2008-02-29 11:20:27 +00:00
parent 6d271dd4fc
commit a85b1982c2

View File

@ -47,7 +47,7 @@
input = this_input.getParent().getChildren().filterByClass('widget-id')[0]; input = this_input.getParent().getChildren().filterByClass('widget-id')[0];
regex = /^([^:]+)/; regex = /^([^:]+)/;
id = regex(input.value); id = regex.exec(input.value);
if (this_input.value.trim() == ''){ if (this_input.value.trim() == ''){
this_input.value=Widgets.inputPlaceHld; this_input.value=Widgets.inputPlaceHld;
return; return;
@ -177,7 +177,7 @@
input = dropped.getChildren().filterByClass('widget-id')[0]; input = dropped.getChildren().filterByClass('widget-id')[0];
widgetsetid = /^widgetsetid-(.*)$/(parentid); widgetsetid = /^widgetsetid-(.*)$/.exec(parentid);
input.set({ input.set({
'name' : 'widgets[' + widgetsetid[1] + '][]' 'name' : 'widgets[' + widgetsetid[1] + '][]'
}); });