You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"$('input:text, .ui.button', '#{$id}').on('click', function (e) {e.preventDefault();\$('input:file', '#{$id}').click();});
27
29
$('input:file', '#{$id}').on('change', function (e) {if(e.target.files.length){var name = e.target.files[0].name;$('input:text', $(e.target).parent()).val(name);}});";
28
30
}
@@ -36,8 +38,8 @@ public static function fileUploadBehavior($id=''){
36
38
* @return string
37
39
*/
38
40
publicstaticfunctionprep_element($element) {
39
-
if (self::containsCode($element)===false) {
40
-
$element='"'.addslashes($element).'"';
41
+
if (self::containsCode($element)===false) {
42
+
$element = '"' . addslashes($element) . '"';
41
43
}
42
44
return$element;
43
45
}
@@ -52,18 +54,24 @@ public static function prep_element($element) {
0 commit comments