Skip to content

Commit

Permalink
Rename css 'active' class to 'riv-active' to avoid naming conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Miller committed May 23, 2011
1 parent 58a8798 commit 40d0718
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions javascripts/jquery.rest_in_place.js
Expand Up @@ -11,15 +11,15 @@ RestInPlaceEditor.prototype = {

activate : function() {
this.oldValue = this.element.html();
this.element.addClass('active');
this.element.addClass('riv-active');
this.element.unbind('click', this.clickHandler)
this.activateForm();
},

abort : function() {
this.element
.html(this.oldValue)
.removeClass('active')
.removeClass('riv-active')
.bind('click', {editor: this}, this.clickHandler);
},

Expand All @@ -33,7 +33,7 @@ RestInPlaceEditor.prototype = {
"dataType" : 'json',
"success" : function(data){ editor.loadSuccessCallback(data) }
});
editor.element.removeClass('active');
editor.element.removeClass('riv-active');
}
});
editor.element.html("saving...");
Expand Down

0 comments on commit 40d0718

Please sign in to comment.