Fix: l18n link was broken.

Fix: disabled cacheing in autocomplete
This commit is contained in:
tanshu 2016-03-14 16:22:44 +05:30
parent abc77fb5a6
commit 6653121a6f
2 changed files with 6 additions and 4 deletions

View File

@ -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>

View File

@ -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>