diff options
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/fiveui/js/options.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/js/fiveui/js/options.js b/src/js/fiveui/js/options.js index 5a4e48d..29b37ed 100644 --- a/src/js/fiveui/js/options.js +++ b/src/js/fiveui/js/options.js @@ -318,7 +318,7 @@ fiveui.RuleSetEntry = Backbone.View.extend({ , ' <button class="edit">edit</button>' , ' <button class="reload">reload</button>' , '</div>' - , '<span class="title"><%= name %></span>' + , '<span class="title"><%= name %><%= license %></span>' ].join('')), // render the rule set as its title, with some buttons to edit/remove/reload @@ -327,8 +327,16 @@ fiveui.RuleSetEntry = Backbone.View.extend({ // render the rule set var attrs = _.clone(this.model.attributes); + + // add a comma to the license field, if it's present. + if(!_.isEmpty(attrs.license)) { + attrs.license = ', ' + attrs.license; + } + this.$rs.html(this.viewRsTemplate(attrs)); + console.log(attrs.license); + button(this.$rs.find('.edit'), { primary: 'ui-icon-pencil' }); button(this.$rs.find('.reload'), { primary: 'ui-icon-refresh' }); button(this.$rs.find('.remove'), { primary: 'ui-icon-close' }); |