Permalink
Browse files

better message in the case where the user enters a trial selection bu…

  • Loading branch information...
1 parent 7b4d4ee commit 2c1a384bfbce36186c1dc1e151ab33f59a188a87 @johnjbarton johnjbarton committed Aug 25, 2010
Showing with 11 additions and 2 deletions.
  1. +9 −1 content/selectbug.js
  2. +2 −1 locale/en-US/selectbug.properties
View
@@ -189,7 +189,11 @@ SelectorPanel.prototype = extend(Firebug.Panel,
}
var table = SelectorTemplate.tag.replace({object: []}, this.panelNode);
var tbody = table.lastChild;
- WarningTemplate.noSelectionTag.insertRows({object: this.selection}, tbody.lastChild);
+ if (this.trialSelector)
+ WarningTemplate.noSelectionResultsTag.insertRows({object: this.selection}, tbody.lastChild)
+ else
+ WarningTemplate.noSelectionTag.insertRows({object: this.selection}, tbody.lastChild);
+
this.showTrialSelector(this.trialSelector);
},
@@ -344,6 +348,10 @@ var WarningTemplate = domplate(Firebug.Rep,
TD({"class": "selectionElement"}, $STR("selectbug.noSelection"))
),
+ noSelectionResultsTag: TR({"class":"selectbugWarning "},
+ TD({"class": "selectionElement"}, $STR("selectbug.noSelectionResults"))
+ ),
+
selectErrorTag: TR({"class":"selectbugWarning"},
TD({"class": "selectionElement"}, $STR("selectbug.selectorError"))
),
@@ -1,4 +1,5 @@
selectbug.noSelection=Mouseover CSS Rules to preview, Click to select one
+selectbug.noSelectionResults=No matching elements
selectbug.selectorError=Selection failed:
selectbug.Selection=Selection
-selectbug.TryASelector=Try a selector...
+selectbug.TryASelector=Try a selector...

0 comments on commit 2c1a384

Please sign in to comment.