Changeset 216 for trunk/grails-app/taglib
- Timestamp:
- Feb 26, 2010, 3:23:03 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/taglib/dbnp/studycapturing/WizardTagLib.groovy
r213 r216 55 55 // javascript function to call after success 56 56 def afterSuccess = attrs['afterSuccess'] 57 58 // src parameter? 59 def src = attrs['src'] 60 def alt = attrs['alt'] 57 61 58 62 // generate a normal submitToRemote button … … 89 93 if (afterSuccess) { 90 94 button = button.replaceFirst(/\.html\(data\)\;/, '.html(data);' + afterSuccess + ';') 95 } 96 97 // got an src parameter? 98 if (src) { 99 def replace = 'type="image" src="' + src + '"' 100 101 if (alt) replace = replace + ' alt="' + alt + '"' 102 103 button = button.replaceFirst(/type="button"/, replace) 91 104 } 92 105
Note: See TracChangeset
for help on using the changeset viewer.