diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-10-30 16:21:27 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-10-30 16:21:27 +0000 |
commit | 9de9661baaa232da170e45534a7d335bf96ef606 (patch) | |
tree | 82a709a3a048855a35f8a4e003cef9cfee074f1a /webclient/app.js | |
parent | SYWEB-12: More formatting. (diff) | |
download | synapse-9de9661baaa232da170e45534a7d335bf96ef606.tar.xz |
SYWEB-12: More formatting and tweaking of state event JSON.
Use a proper elastic directive to make the <textarea> resize dynamically. Use an 'asjson' directive to turn an ngModel of a JSON object into a formatted JSON string so it can be displayed on the textarea. Also, deep copy the state events being displayed, else it actually alters the underlying data structures when playing around with the JSON in the textarea!
Diffstat (limited to 'webclient/app.js')
-rw-r--r-- | webclient/app.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webclient/app.js b/webclient/app.js index 099e2170a0..8d9b662ee9 100644 --- a/webclient/app.js +++ b/webclient/app.js @@ -31,7 +31,8 @@ var matrixWebClient = angular.module('matrixWebClient', [ 'eventStreamService', 'eventHandlerService', 'infinite-scroll', - 'ui.bootstrap' + 'ui.bootstrap', + 'monospaced.elastic' ]); matrixWebClient.config(['$routeProvider', '$provide', '$httpProvider', |