Skip to content

Commit

Permalink
Switch radio to checkbox in class manager view
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Jul 3, 2017
1 parent f6d30a5 commit 1ea293a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/grapes.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grapesjs",
"description": "Free and Open Source Web Builder Framework",
"version": "0.9.1",
"version": "0.9.2",
"author": "Artur Arseniev",
"license": "BSD-3-Clause",
"homepage": "http://grapesjs.com",
Expand Down
7 changes: 5 additions & 2 deletions src/selector_manager/view/ClassTagView.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,17 @@ module.exports = Backbone.View.extend({
* @private
*/
updateStatus() {
var chkOn = 'fa-check-square-o';
var chkOff = 'fa-square-o';

if(!this.$chk)
this.$chk = this.$el.find('#' + this.pfx + 'checkbox');

if(this.model.get('active')){
this.$chk.removeClass('fa-circle-o').addClass('fa-dot-circle-o');
this.$chk.removeClass(chkOff).addClass(chkOn);
this.$el.removeClass('opac50');
}else{
this.$chk.removeClass('fa-dot-circle-o').addClass('fa-circle-o');
this.$chk.removeClass(chkOn).addClass(chkOff);
this.$el.addClass('opac50');
}
},
Expand Down

0 comments on commit 1ea293a

Please sign in to comment.