Commit c6159594 authored by Batyr Mackenov's avatar Batyr Mackenov

Fix to categories slug in backend

parent c9c33dae
......@@ -15,7 +15,7 @@
<items>
<item payable="0" pages="storefront,categories,product_details">products</item>
<item pages="storefront,categories" payable="0">categories</item>
<item pages="storefront,categories" payable="0" table_name="categories">categories</item>
<item payable="0">orders</item>
</items>
......
......@@ -55,7 +55,7 @@ intelli.titleCache = '';
intelli.fillUrlBox = function () {
var id = $('#input-id').val();
var slug = $('#input-slug').val();
var title = slug || $('#field_categories_title').val();
var title = slug || $('#field_category_title').val();
var category = $('#input-tree').val();
var cache = title + '%%' + category;
......@@ -86,8 +86,8 @@ intelli.fillUrlBox = function () {
};
$(function () {
$('#field_categories_title').keyup(function() {
$('#field_category_title').keyup(function() {
$('#field-slug').show();
});
$('#field_categories_title, #input-slug').on('blur', intelli.fillUrlBox).trigger('blur');
$('#field_category_title, #input-slug').on('blur', intelli.fillUrlBox).trigger('blur');
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment