diff --git a/custom_ROToolbox.js b/custom_ROToolbox.js index 78a3e2c..aaf4f96 100644 --- a/custom_ROToolbox.js +++ b/custom_ROToolbox.js @@ -291,7 +291,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]; @@ -1655,4 +1656,4 @@ function tbxDatePicker (targetEle, settings) { $(this).parents(".form-group").removeClass('has-error'); } }); -} \ No newline at end of file +}