--- a/src/js/widgets/segmentsWidget.js Tue Nov 29 16:35:20 2011 +0100
+++ b/src/js/widgets/segmentsWidget.js Tue Nov 29 16:35:33 2011 +0100
@@ -139,13 +139,19 @@
var matches = this._serializer.searchOccurences(searchString);
+ if (IriSP.countProperties(matches) > 0) {
+ this._Popcorn.trigger("IriSP.SegmentsWidget.matchFound");
+ } else {
+ this._Popcorn.trigger("IriSP.SegmentsWidget.noMatchFound");
+ }
+
+ console.log(matches.length, matches);
+
for (var id in matches) {
var factor = (0.3 + matches[id] * 0.2) % 1;
this.selector.find("#"+id).dequeue();
this.selector.find("#"+id).css('border','1px red');
this.selector.find("#"+id).animate({opacity:factor}, 200);
-
- IriSP.jQuery("#LdtSearchInput").css('background-color','#e1ffe1');
}
// clean up the blocks that were in the previous search