Sha256: 62cc8fa197429299468b6987f75e344fdfbfe237f62079b092e41a6e61a7edad

Contents?: true

Size: 835 Bytes

Versions: 5

Compression:

Stored size: 835 Bytes

Contents

//= require ./jquery.multi-select
//= require_self
jQuery(function(){
    var form = $('#ecommerce_settings_form');
    form.find('select[multiple], .masked_select').not('#setting_visitor_unit_currencies, #setting_shipping_countries').selectpicker();
    form.find('#setting_visitor_unit_currencies').multiSelect({keepOrder: true});
    form.find('#setting_shipping_countries').multiSelect();
    setTimeout(function(){ form.find('textarea.editor.translate-item').tinymce(cama_get_tinymce_settings({height: 220})) }, 100);
    form.find('.shipping_countries_link').click(function(){
        if($(this).hasClass('select_all'))
            form.find('#setting_shipping_countries').multiSelect('select_all');
        else
            form.find('#setting_shipping_countries').multiSelect('deselect_all');
        return false;
    });
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
camaleon_ecommerce-2.0.4 app/assets/javascripts/plugins/ecommerce/admin_settings.js
camaleon_ecommerce-2.0.3 app/assets/javascripts/plugins/ecommerce/admin_settings.js
camaleon_ecommerce-2.0.2 app/assets/javascripts/plugins/ecommerce/admin_settings.js
camaleon_ecommerce-2.0.1 app/assets/javascripts/plugins/ecommerce/admin_settings.js
camaleon_ecommerce-2.0.0 app/assets/javascripts/plugins/ecommerce/admin_settings.js