';
$('tt-tags').set('html', $('tt-tags').get('html') + button);
}
$('tt-status').set('html', mess);
$('ttnewtag').set('value','');
$('ttnewtag').focus();
}
});
a.send();
}
function delTag(id)
{if (typeof jQuery === 'function') { jQuery.noConflict();}
var url = 'https://cake-store.ru/index.php?option=com_tortags&task=deltag&tmpl=component&format=raw&tag_id='+ id+'&id=1876&comp=com_jshopping';
var d = new Request.HTML({
url: url,
method: 'post',
update : $('tt-value'),
onRequest: function(){
$('tt-status').set('text', 'loading...');
},
onComplete: function(response)
{
var namefield = 'tagid_'+ id;
$(namefield).destroy();
var result = $('tt-value').get('text');
var mess = '';
if (result==-1)
{
mess ="
Error: empty or wrong parameters ";
}else
{
mess ="
Successfully deleted ";
}
$('tt-status').set('html', mess);
}
});
d.send();
}