activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1439018 - /activemq/activemq-apollo/trunk/apollo-web/src/main/webapp/console/js/app.js
Date Sun, 27 Jan 2013 04:22:47 GMT
Author: chirino
Date: Sun Jan 27 04:22:47 2013
New Revision: 1439018

URL: http://svn.apache.org/viewvc?rev=1439018&view=rev
Log:
Better editor styling and selection handling.

Modified:
    activemq/activemq-apollo/trunk/apollo-web/src/main/webapp/console/js/app.js

Modified: activemq/activemq-apollo/trunk/apollo-web/src/main/webapp/console/js/app.js
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-web/src/main/webapp/console/js/app.js?rev=1439018&r1=1439017&r2=1439018&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-web/src/main/webapp/console/js/app.js (original)
+++ activemq/activemq-apollo/trunk/apollo-web/src/main/webapp/console/js/app.js Sun Jan 27
04:22:47 2013
@@ -867,6 +867,7 @@ App.AceView = Ember.View.extend({
 
     editor.renderer.setShowPrintMargin(true);
     editor.renderer.setShowGutter(true);
+    editor.setHighlightActiveLine(false);
     var session = editor.getSession();
     session.setUseSoftTabs(true);
     session.setTabSize(2);
@@ -894,6 +895,8 @@ App.AceView = Ember.View.extend({
     if (editor && code && code !== this._codeFromEditor) {
       this._codeFromUpdate = code;
       editor.setValue(code);
+      editor.clearSelection();
+      editor.focus();
     }
     this._updating = false
   }.observes('code', 'editor'),



Mime
View raw message