Fixed: Show search for existing series that finds no results

This commit is contained in:
Mark McDowall 2014-10-23 16:55:25 -07:00
parent 8b3fd95d55
commit d017c40747
6 changed files with 3 additions and 9 deletions

View File

@ -109,13 +109,6 @@
</inspection_tool>
<inspection_tool class="SwitchStatementWithNoDefaultBranchJS" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="TailRecursionJS" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="TaskInspection" enabled="true" level="INFO" enabled_by_default="true">
<option name="suppressedTasks">
<set>
<option value="LESS" />
</set>
</option>
</inspection_tool>
<inspection_tool class="ThisExpressionReferencesGlobalObjectJS" enabled="true" level="ERROR" enabled_by_default="true" />
<inspection_tool class="ThreeNegationsPerFunctionJS" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="UnterminatedStatementJS" enabled="true" level="ERROR" enabled_by_default="true">

View File

@ -134,6 +134,7 @@ define(
if (!this.isClosed) {
if (this.collection.length === 0) {
this.ui.searchBar.show();
this.searchResult.show(new NotFoundView({term: this.collection.term}));
}
else {

View File

@ -6,7 +6,7 @@ define(
], function (Marionette) {
return Marionette.CompositeView.extend({
template: 'AddSeries/NotFoundTemplate',
template: 'AddSeries/NotFoundViewTemplate',
initialize: function (options) {
this.options = options;

View File

@ -4,7 +4,7 @@ define(
'marionette'
], function (Marionette) {
return Marionette.ItemView.extend({
template: 'Shared/notfoundtemplate'
template: 'Shared/NotFoundViewTemplate'
});
});