// fix category autocompletion binding
This commit is contained in:
@@ -25,13 +25,14 @@
|
|||||||
*}
|
*}
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('input').keypress(function(e) {
|
$('input').keypress(function(e) {
|
||||||
var code = null;
|
var code = null;
|
||||||
code = (e.keyCode ? e.keyCode : e.which);
|
code = (e.keyCode ? e.keyCode : e.which);
|
||||||
return (code == 13) ? false : true;
|
return (code == 13) ? false : true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
searchCategory();
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -260,7 +260,8 @@ function updateNbSubCategorySelected(category, add)
|
|||||||
updateNbSubCategorySelected(currentSpan.parent().children('input'), add);
|
updateNbSubCategorySelected(currentSpan.parent().children('input'), add);
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready( function() {
|
function searchCategory()
|
||||||
|
{
|
||||||
var category_to_check;
|
var category_to_check;
|
||||||
if ($('#search_cat').length)
|
if ($('#search_cat').length)
|
||||||
{
|
{
|
||||||
@@ -283,7 +284,7 @@ $(document).ready( function() {
|
|||||||
parent_ids = getParentCategoriesIdAndOpen(item[1]);
|
parent_ids = getParentCategoriesIdAndOpen(item[1]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
|
||||||
function getParentCategoriesIdAndOpen(id_category)
|
function getParentCategoriesIdAndOpen(id_category)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user