// fix category autocompletion binding

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11417 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-12-20 15:13:26 +00:00
parent 68c1fb7c5d
commit c8342112c8
2 changed files with 5 additions and 3 deletions
@@ -25,13 +25,14 @@
*}
<script type="text/javascript">
$(document).ready(function() {
$('input').keypress(function(e) {
var code = null;
code = (e.keyCode ? e.keyCode : e.which);
return (code == 13) ? false : true;
});
searchCategory();
});
</script>
+3 -2
View File
@@ -260,7 +260,8 @@ function updateNbSubCategorySelected(category, add)
updateNbSubCategorySelected(currentSpan.parent().children('input'), add);
}
$(document).ready( function() {
function searchCategory()
{
var category_to_check;
if ($('#search_cat').length)
{
@@ -283,7 +284,7 @@ $(document).ready( function() {
parent_ids = getParentCategoriesIdAndOpen(item[1]);
});
}
});
}
function getParentCategoriesIdAndOpen(id_category)
{