Author: ilgrosso
Date: Thu Feb 27 16:14:41 2014
New Revision: 1572642

URL: http://svn.apache.org/r1572642
Log:
[SYNCOPE-482] Applying provided patch

Modified:
    
syncope/trunk/console/src/main/resources/org/apache/syncope/console/pages/XMLEditorPopupPage.html

Modified: 
syncope/trunk/console/src/main/resources/org/apache/syncope/console/pages/XMLEditorPopupPage.html
URL: 
http://svn.apache.org/viewvc/syncope/trunk/console/src/main/resources/org/apache/syncope/console/pages/XMLEditorPopupPage.html?rev=1572642&r1=1572641&r2=1572642&view=diff
==============================================================================
--- 
syncope/trunk/console/src/main/resources/org/apache/syncope/console/pages/XMLEditorPopupPage.html
 (original)
+++ 
syncope/trunk/console/src/main/resources/org/apache/syncope/console/pages/XMLEditorPopupPage.html
 Thu Feb 27 16:14:41 2014
@@ -49,8 +49,10 @@ under the License.
       </div>
     </form>
     <script>
-      var editor = 
CodeMirror.fromTextArea(document.getElementById("workflowDefArea"),
-              {lineNumbers: true, onChange: updateTextArea});
+      window.onload = function(){
+              var editor = 
CodeMirror.fromTextArea(document.getElementById("workflowDefArea"),{lineNumbers:
 true});
+              editor.on("change", updateTextArea);
+      }   
     </script>
   </wicket:extend>
 </html>


Reply via email to