Commit 48c369bc authored by Batyr Mackenov's avatar Batyr Mackenov

Fix to products slug in backend

parent ce4c16fc
......@@ -4,7 +4,7 @@ Ext.onReady(function () {
{
columns: [
'selection',
{name: 'pictures', title: _t('field_products_pictures'), icon: 'image', click: function(record, field){
{name: 'pictures', title: _t('field_product_pictures'), icon: 'image', click: function(record, field){
$.fancybox.open(record.get(field));
}},
{name: 'title', title: _t('title'), width: 1, editor: 'text'},
......@@ -73,7 +73,7 @@ Ext.onReady(function () {
intelli.titleCache = '';
intelli.fillUrlBox = function () {
var slug = $('#input-slug').val();
var title = slug || $('#field_products_title').val();
var title = slug || $('#field_product_title').val();
var category = $('#input-tree').val();
var cache = title + '%%' + location + '%%' + category;
......@@ -92,8 +92,8 @@ intelli.fillUrlBox = function () {
};
$(function () {
$('#field_products_title').keyup(function () {
$('#field_product_title').keyup(function () {
$('#field-slug').show();
});
$('#field_products_title, #input-slug').blur(intelli.fillUrlBox).blur();
$('#field_product_title, #input-slug').blur(intelli.fillUrlBox).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