|
@@ -23,7 +23,7 @@ $(document).on('click', '.attribute_creator', function () {
|
|
|
new_select.find('select').removeClass();
|
|
|
new_select.find('select').addClass('newSelectItem');
|
|
|
$('div.added_attribute:last').after( new_select.html() );
|
|
|
- $('div.added_attribute:last').show().find('select').attr('name', 'val_attribute[' + attr_id + '][]');
|
|
|
+ $('div.added_attribute:last').show().find('select').attr('name', 'val_attribute[' + attr_id + ']'+'[]');
|
|
|
$('#saveItemAttribute').show();
|
|
|
$(".added_attribute select").select2({
|
|
|
tags: true
|
|
@@ -50,11 +50,11 @@ $(document).on('click', '.attribute_creator', function () {
|
|
|
processData: false,
|
|
|
contentType: false,
|
|
|
success: function(operate) {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ if (operate.status == 200){
|
|
|
+ swal(operate.msg);
|
|
|
+ }else {
|
|
|
+ swal(operate.msg);
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
|