Added changes from eb94b51 TMMeilleur/PrestaShop

This commit is contained in:
alexey-svistunov
2013-11-08 21:00:00 +02:00
parent d3100acef2
commit 6f5c9044d3
87 changed files with 4285 additions and 152 deletions
+34
View File
@@ -0,0 +1,34 @@
jQuery(document).ready(function() {
$('.button.new-item').click(function() {
var item_container = $(this).parent('.new-item');
item_container.toggleClass('active').children('.item-container').slideToggle();
});
$('.button-edit').click(function() {
var item_container = $(this).parent('.item');
item_container.toggleClass('active').children('.item-container').slideToggle();
});
$('.button-close').click(function() {
var item_container = $(this).parent('.item');
item_container.toggleClass('active').children('.item-container').slideToggle();
});
$('.lang-flag').click(function() {
var lang_id = (this.id).substr(5);
$('.lang-flag').each(function () {
$(this).removeClass('active');
});
$(this).addClass('active');
$('.lang-content').each(function () {
$(this).hide();
});
$('#items-'+lang_id).show();
});
$('.new-lang-flag').click(function() {
var lang_id = (this.id).substr(5);
$('.new-lang-flag').each(function () {
$(this).removeClass('active');
});
$(this).addClass('active');
$("#lang-id").val(lang_id)
});
});