diff options
author | Struan Donald <struan@exo.org.uk> | 2013-06-06 13:29:15 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-06-06 17:48:21 +0100 |
commit | 4be5b565dc17d0153a9877affae7151490b7404b (patch) | |
tree | acc1d6ea2cc35aeec63dc55186c8ca233e4060f8 /www/js | |
parent | 6a0f52d6c5a86e953c4493aaed4e98d02078eb86 (diff) |
need to use this.$ in case setSelectClass is called from afterRender
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/views/details.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/views/details.js b/www/js/views/details.js index 67fbab6..b5e94e5 100644 --- a/www/js/views/details.js +++ b/www/js/views/details.js @@ -22,8 +22,8 @@ if ( this.model.get('category') ) { this.$('#form_category').val( this.model.get('category') ); - this.setSelectClass(); } + this.setSelectClass(); }, @@ -74,7 +74,7 @@ }, setSelectClass: function() { - var cat = $('#form_category'); + var cat = this.$('#form_category'); if ( cat.val() !== "" && cat.val() !== '-- Pick a category --' ) { cat.removeClass('noselection'); } else { |