Skip to content

Commit

Permalink
Changed "Reset Page" to "Remove Styling" in browser action menu. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit committed Jul 11, 2013
1 parent dfd4018 commit 30b7d81
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion stylebot/browseraction/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div class="clearfix"></div>
<li><a class="share" href="#">Share style on Social...</a></li>
<div class="clearfix"></div>
<li><a class="reset" href="#">Reset Page</a></li>
<li><a class="reset" href="#">Remove Styling</a></li>
<div class="clearfix"></div>
<li><a class="options" href="#">Options...</a></li>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions stylebot/editor/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ stylebot.style = {
*/
resetAllCSS: function(showPopover) {
if (showPopover) {
this.showPreviewPopover("Reset custom CSS for the page");
this.showPreviewPopover("Removed custom CSS for the page");
this.hidePreviewPopover(true);
}

Expand Down Expand Up @@ -564,7 +564,7 @@ stylebot.style = {
* Preview the page after removing any style rules
*/
previewReset: function() {
this.showPreviewPopover("Reset Preview");
this.showPreviewPopover("Preview after removing custom CSS");
this.applyPageCSS("", false);
},

Expand Down
12 changes: 6 additions & 6 deletions stylebot/editor/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ stylebot.widget = {

// Edit CSS button
WidgetUI.createButton('Edit CSS')
.attr('title', 'Edit custom CSS for the entire page')
.attr('title', 'Edit custom CSS for the page')
.tipsy({ delayIn: 800, gravity: 'sw', html: true })
.appendTo(btContainer)
.click(self.editCSS);
Expand All @@ -186,15 +186,15 @@ stylebot.widget = {

// Reset button
self.cache.resetBtn = WidgetUI.createButton('Reset')
.attr('title', 'Reset custom CSS for the selected element(s)')
.attr('title', 'Remove custom CSS for the selected element(s)')
.prop('disabled', true)
.tipsy({ delayIn: 800, gravity: 's', html: true })
.tipsy({ delayIn: 500, gravity: 's', html: true })
.appendTo(btContainer)
.click(self.resetSelectedElements);

// Reset Page button
// Reset Custom CSS button
self.cache.resetPageBtn = WidgetUI.createButton('Reset Page')
.attr('title', 'Reset custom CSS for the entire page')
.attr('title', 'Remove custom CSS for the page')
.prop('disabled', true)
.tipsy({ delayIn: 500, gravity: 'se', html: true })
.appendTo(btContainer)
Expand Down Expand Up @@ -413,7 +413,7 @@ stylebot.widget = {
* Reset the entire CSS for the page
*/
resetPage: function() {
if (confirm("Are you sure you want to reset the custom CSS for this page?")) {
if (confirm("Are you sure you want to remove the custom CSS for this page?")) {
stylebot.undo.push(Utils.cloneObject(stylebot.style.rules));
stylebot.undo.refresh();
stylebot.widget.reset();
Expand Down

0 comments on commit 30b7d81

Please sign in to comment.