Permalink
Browse files

automagically select output.

  • Loading branch information...
1 parent 218e9d3 commit ab35424a0a3b274b93927a79117ec253f6f47f83 @gpbmike committed May 21, 2014
Showing with 8 additions and 2 deletions.
  1. +1 −1 .grunt/grunt-gh-pages/gh-pages/gh-pages
  2. +6 −0 app/scripts/app.js
  3. +1 −1 app/templates/compressor.hbs
Submodule gh-pages updated from efbc60 to e7196c
View
@@ -160,6 +160,12 @@
}
});
+ App.OutputTextArea = Ember.TextArea.extend({
+ didInsertElement: function () {
+ this.$().focus().select();
+ }
+ });
+
window.App = App;
})();
@@ -38,7 +38,7 @@
<div class="row">
<div class="col-lg-12">
- <pre {{ bind-attr classBinding=":form-control :alert error:alert-danger:alert-success" }}>{{output}}</pre>
+ {{view App.OutputTextArea classBinding=":form-control :alert error:alert-danger:alert-success" rows="10" value=output}}
</div>
</div>

0 comments on commit ab35424

Please sign in to comment.