Fix: l18n link was broken.
Fix: disabled cacheing in autocomplete
This commit is contained in:
parent
abc77fb5a6
commit
6653121a6f
@ -38,7 +38,7 @@
|
||||
<script src="/js/moment.js"></script>
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular.js"></script>
|
||||
<script src="https://code.a ngularjs.org/1.5.0/i18n/angular-locale_en-in.js"></script>
|
||||
<script src="https://code.angularjs.org/1.5.0/i18n/angular-locale_en-in.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular-animate.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular-cookies.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular-resource.min.js"></script>
|
||||
|
@ -3,8 +3,9 @@
|
||||
|
||||
<div layout-gt-sm="row">
|
||||
<md-autocomplete md-selected-item="recipe.Product" md-search-text="searchProd"
|
||||
md-autofocus="recipe.RecipeItems.length === 0"
|
||||
md-items="item in products(searchProd, {p: false})" md-item-text="item.Name" on-return="add()"
|
||||
focus-on="foProduct" md-autoselect md-floating-label="Recipe of" flex="50">
|
||||
focus-on="foProduct" md-autoselect md-no-cache="true" md-floating-label="Recipe of" flex="50">
|
||||
<md-item-template>
|
||||
<span md-highlight-text="searchText">{{item.Name}}</span>
|
||||
</md-item-template>
|
||||
@ -32,8 +33,9 @@
|
||||
</div>
|
||||
<div layout-gt-sm="row">
|
||||
<md-autocomplete md-selected-item="product" md-search-text="searchIngredient"
|
||||
md-items="item in products(searchIngredient, {})" md-item-text="item.Name" on-return="add()"
|
||||
focus-on="foProduct" md-autoselect md-floating-label="Ingredient" flex="50">
|
||||
md-autofocus="recipe.RecipeItems.length > 0" md-items="item in products(searchIngredient, {})"
|
||||
md-item-text="item.Name" on-return="add()"
|
||||
focus-on="foProduct" md-autoselect md-no-cache="true" md-floating-label="Ingredient" flex="50">
|
||||
<md-item-template>
|
||||
<span md-highlight-text="searchText">{{item.Name}}</span>
|
||||
</md-item-template>
|
||||
|
Loading…
Reference in New Issue
Block a user