You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2013/01/27 05:22:47 UTC
svn commit: r1439018 -
/activemq/activemq-apollo/trunk/apollo-web/src/main/webapp/console/js/app.js
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'),