diff --git a/custom_ROToolbox.js b/custom_ROToolbox.js index 6be600c..52c9a37 100644 --- a/custom_ROToolbox.js +++ b/custom_ROToolbox.js @@ -288,7 +288,8 @@ function transformRO() { function parseOptions(controlName, control) { var properties = "{}"; - var regExp = /({[^}]+})/; + var rex = controlName + "(.*)"; + var regExp = new RegExp(rex); var matches = regExp.exec(control.text()); if (matches && matches[1]) properties = matches[1]; @@ -1646,4 +1647,4 @@ function tbxDatePicker (targetEle, settings) { $(this).parents(".form-group").removeClass('has-error'); } }); -} \ No newline at end of file +}