Author: ygrego Date: 2015-04-07 08:23:25 +0000 (Tue, 07 Apr 2015) New Revision: 1083 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1083 Log: The method "getResults" has been modifed in order to perform the search only at some conditions. Modified: oipf/js/impl/model/SearchResults.js Modified: oipf/js/impl/model/SearchResults.js =================================================================== --- oipf/js/impl/model/SearchResults.js 2015-04-07 08:15:36 UTC (rev 1082) +++ oipf/js/impl/model/SearchResults.js 2015-04-07 08:23:25 UTC (rev 1083) @@ -128,8 +128,10 @@ } }, 0); + } else { - this._fireEvent(createCustomEvent("MetadataSearch", [this.playState, error])); + this._fireEvent(createCustomEvent("MetadataSearch", + [this._search, this.SEARCH_CANNOT_BE_COMPLETED])); } return false;