aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/views/details.js6
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 );