Disable twitter typeahead.js cache -
i'm having problems typeahead.js cache. code i'm using:
$('#descripcionarticulo').typeahead({ name: 'descripcionarticulotypeahead', remote: '@url.action("getarticulos", "notapedido", new { area = "ventas" })?q=%query&limit=20', minlength: 2, limit: 20, hint: true, highlight: true, template: [ '<span class="repo-name">{{value}}</span>' ].join(''), prefetch: { ttl: 1 }, engine: hogan }).on("typeahead:selected", function (res, data) { dialogdetallemodel.loadarticulo(data); }).on("typeahead:opened", function(event, ui) { $('#descripcionarticulo').typeahead('setquery', $('#descripcionarticulo').val()); });
does know alternative disable cache?
add key/value cache:false
prefetch object.
but aren't mixing typeahead , bloundhound initialization , code ?
typeahead.js
No comments:
Post a Comment