// fix bug added and remove attachement in AdminProductsController
This commit is contained in:
@@ -135,16 +135,16 @@ $(document).ready(function(){
|
||||
$("#product-tab-content-wait").hide();
|
||||
|
||||
var languages = new Array();
|
||||
if (id == 3)
|
||||
if (id == "4-Combinations")
|
||||
populate_attrs();
|
||||
if (id == 7)
|
||||
if (id == '7-Attachments')
|
||||
{
|
||||
$("#addAttachment").click(function() {
|
||||
return !$("#selectAttachment1 option:selected").remove().appendTo("#selectAttachment2");
|
||||
});
|
||||
$("#removeAttachment").click(function() {
|
||||
$("#addAttachment").live('click', function() {
|
||||
return !$("#selectAttachment2 option:selected").remove().appendTo("#selectAttachment1");
|
||||
});
|
||||
$("#removeAttachment").live('click', function() {
|
||||
return !$("#selectAttachment1 option:selected").remove().appendTo("#selectAttachment2");
|
||||
});
|
||||
$("#product").submit(function() {
|
||||
$("#selectAttachment1 option").each(function(i) {
|
||||
$(this).attr("selected", "selected");
|
||||
|
||||
Reference in New Issue
Block a user