Sha256: 46b24a1c0a23029bb25ad3ef1492f311e1e206ecea705fce4843b9f89a243965

Contents?: true

Size: 317 Bytes

Versions: 1

Compression:

Stored size: 317 Bytes

Contents

jQuery(function($){
    $( '#form-post' ).on( "change", '.editor-custom-fields input[name="field_options[ecommerce_weight][values][]"], .editor-custom-fields .input-value.number', function() {
        setTimeout(function(){
            $(this).val(Math.abs($(this).val()) || 0);
        }.bind(this), 60)
    });
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
camaleon_ecommerce-1.1 app/assets/javascripts/plugins/ecommerce/fix_form.js