PATH:
home
/
letacommog
/
letaweb
/
scripts
/
editor
/
popup
$.popup('palette', 'popupconfirm', { init: function(element) { var template = '<li class="color_item">' + '<div class="color_holder">' + '<div class="color_input" style="background:#857d7d">'+ '</div>' + '</div>' + '</li>'; var colors = PM.palette.colors; var that = this; for(var i = 0;i < 5;i++) { for(var j = 0;j < 5;j++) { var item = $(template); item.data('index', i * 5 + j); $('.color_pallete_list', element).append(item); $('.color_input', item).css('background-color', colors[j][i].toString()); item.data('color', colors[j][i].toString()); item.click(function() { var index = $(this).data('index'); var c = $(this).data('color'); //that.onchangecolor('##' + index, c); $(this).addClass('selected'); if(!that.options.multiple) $(this).siblings().removeClass('selected'); }); } } }, onOK : function() { var color_pallete_list = $('.color_pallete_list', this.element); var color_list = []; $('li.selected', color_pallete_list).each(function() { var index = $(this).data('index'); color_list.push(index); }); if(this.options.onOK) this.options.onOK(color_list); }, }, { multiple : false });
[+]
..
[-] profile.js
[edit]
[-] pagelist.js
[edit]
[-] order.js
[edit]
[-] customer_group.js
[edit]
[-] module_list.js
[edit]
[-] backgroundeditor.js
[edit]
[-] product.js
[edit]
[-] visualcsseditor.js
[edit]
[-] shipping_rule.js
[edit]
[-] profile_change_password.js
[edit]
[-] review.js
[edit]
[-] contributor_invite.js
[edit]
[-] dbfilter.js
[edit]
[-] tax_class.js
[edit]
[-] special_module_style_editor.js
[edit]
[-] idletimeout.js
[edit]
[-] address.js
[edit]
[-] contributor.js
[edit]
[-] login.js
[edit]
[-] skin.js
[edit]
[-] mail.js
[edit]
[-] discount.js
[edit]
[-] customer.js
[edit]
[-] productgrid.js
[edit]
[-] socialsharebuttonconfig.js
[edit]
[-] news.js
[edit]
[-] color.js
[edit]
[-] palette.js
[edit]
[-] newsgrid.js
[edit]
[-] product_option_combination_grid.js
[edit]
[-] page.js
[edit]
[-] product_option.js
[edit]
[-] tax_rate.js
[edit]
[-] coupons.js
[edit]
[-] zone.js
[edit]
[-] product_bulk_price.js
[edit]
[-] option_set.js
[edit]
[-] product_option_combination.js
[edit]