File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ protected function getCascadeClass($value)
9292 $ value = implode ('- ' , $ value );
9393 }
9494
95- return sprintf ('cascade-%s-%s ' , $ this ->getElementClassString (), $ value );
95+ return sprintf ('cascade-%s-%s ' , $ this ->getElementClassString (), bin2hex ( $ value) );
9696 }
9797
9898 /**
@@ -155,6 +155,14 @@ protected function hitsCondition(CascadeGroup $group)
155155 }
156156 }
157157
158+ /**
159+ * Js Value.
160+ */
161+ protected function getValueByJs ()
162+ {
163+ return addslashes (old ($ this ->column (), $ this ->value ()));
164+ }
165+
158166 /**
159167 * Add cascade scripts to contents.
160168 *
@@ -204,7 +212,7 @@ protected function addCascadeScript()
204212 var cascade_groups = {$ cascadeGroups };
205213
206214 cascade_groups.forEach(function (event) {
207- var default_value = ' {$ this ->getDefault ()}' + '';
215+ var default_value = ' {$ this ->getValueByJs ()}' + '';
208216 var class_name = event.class;
209217 if(default_value == event.value) {
210218 $('.'+class_name+'').removeClass('hide');
You can’t perform that action at this time.
0 commit comments