Fixed: Show search for existing series that finds no results
This commit is contained in:
parent
8b3fd95d55
commit
d017c40747
|
@ -109,13 +109,6 @@
|
||||||
</inspection_tool>
|
</inspection_tool>
|
||||||
<inspection_tool class="SwitchStatementWithNoDefaultBranchJS" enabled="true" level="WARNING" enabled_by_default="true" />
|
<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="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="ThisExpressionReferencesGlobalObjectJS" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||||
<inspection_tool class="ThreeNegationsPerFunctionJS" enabled="true" level="WARNING" 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">
|
<inspection_tool class="UnterminatedStatementJS" enabled="true" level="ERROR" enabled_by_default="true">
|
||||||
|
|
|
@ -134,6 +134,7 @@ define(
|
||||||
if (!this.isClosed) {
|
if (!this.isClosed) {
|
||||||
|
|
||||||
if (this.collection.length === 0) {
|
if (this.collection.length === 0) {
|
||||||
|
this.ui.searchBar.show();
|
||||||
this.searchResult.show(new NotFoundView({term: this.collection.term}));
|
this.searchResult.show(new NotFoundView({term: this.collection.term}));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -6,7 +6,7 @@ define(
|
||||||
], function (Marionette) {
|
], function (Marionette) {
|
||||||
|
|
||||||
return Marionette.CompositeView.extend({
|
return Marionette.CompositeView.extend({
|
||||||
template: 'AddSeries/NotFoundTemplate',
|
template: 'AddSeries/NotFoundViewTemplate',
|
||||||
|
|
||||||
initialize: function (options) {
|
initialize: function (options) {
|
||||||
this.options = options;
|
this.options = options;
|
||||||
|
|
|
@ -4,7 +4,7 @@ define(
|
||||||
'marionette'
|
'marionette'
|
||||||
], function (Marionette) {
|
], function (Marionette) {
|
||||||
return Marionette.ItemView.extend({
|
return Marionette.ItemView.extend({
|
||||||
template: 'Shared/notfoundtemplate'
|
template: 'Shared/NotFoundViewTemplate'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue