diff options
author | Struan Donald <struan@exo.org.uk> | 2013-04-10 18:05:26 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-04-10 19:28:10 +0100 |
commit | c336c4c4b7bb8f0b7c961c5de8424d2c7e6fa108 (patch) | |
tree | f3b048cd5ee71906046da9244012c3bd075f0511 /www/js | |
parent | 29dbfd34463b4b8150c480e10728e95d9899f790 (diff) |
if the current draft has a category then default to that on the details page
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/views/details.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/www/js/views/details.js b/www/js/views/details.js index 6fc3f3e..5038d37 100644 --- a/www/js/views/details.js +++ b/www/js/views/details.js @@ -16,6 +16,12 @@ 'blur input': 'updateCurrentReport' }, + afterRender: function() { + if ( this.model.get('category') ) { + this.$('#form_category').val( this.model.get('category') ); + } + }, + onClickButtonPrev: function() { this.updateCurrentReport(); this.navigate( this.prev ); |