Revision: 7098
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7098&view=rev
Author:   dnaber
Date:     2012-05-28 20:12:46 +0000 (Mon, 28 May 2012)
Log Message:
-----------
better presets: making the box empty is now also saved as a preset

Modified Paths:
--------------
    trunk/ltcommunity/grails-app/views/ruleEditor/checkRule.gsp

Modified: trunk/ltcommunity/grails-app/views/ruleEditor/checkRule.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/ruleEditor/checkRule.gsp 2012-05-28 
20:04:12 UTC (rev 7097)
+++ trunk/ltcommunity/grails-app/views/ruleEditor/checkRule.gsp 2012-05-28 
20:12:46 UTC (rev 7098)
@@ -4,7 +4,7 @@
     <td><g:textField id="message"
             onkeypress="return handleReturnForXmlCreation(event);"
             onfocus="\$('message').setStyle({color: 'black'})"
-            onchange="\$('messageBackup').value = \$('message').value"
+            onblur="\$('messageBackup').value = \$('message').value"
             class="preFilledField" type="text" name="message"
             value="${messagePreset ? messagePreset.encodeAsHTML() : 'Did you 
mean \'bad\'?'}"/>
         <!--<br/>
@@ -18,9 +18,9 @@
     <td><g:textField id="name"
             onkeypress="return handleReturnForXmlCreation(event);"
             onfocus="\$('name').setStyle({color: 'black'})"
-            onchange="\$('nameBackup').value = \$('name').value"
+            onblur="\$('nameBackup').value = \$('name').value"
             class="preFilledField" type="text" name="name"
-            value="${namePreset ? namePreset.encodeAsHTML() : 'confusion of 
bed/bad'}"/>
+            value="${(namePreset || messagePreset) ? namePreset.encodeAsHTML() 
: 'confusion of bed/bad'}"/>
         <!--<br/>
         <span class="metaInfo">Example: confusion of bed/bad</span>-->
     </td>

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to