Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/amasty/shopby/view/frontend/web/js/mixins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/amasty/shopby/view/frontend/web/js/mixins/slider.js
define([ 'jquery' ], function ($) {
    'use strict'; // eslint-disable-line

    var mixin = {
        /**
         * OVERRIDE
         *
         * @inheritDoc
         */
        _calculateNewMax: function () {
            var max = this.options.max,
                min = this._valueMin(),
                step = this.options.step,
                aboveMin = ( max - min ) / step * step;

            max = aboveMin + min;

            if ( max > this.options.max ) {
                // If max is not divisible by step, rounding off may increase its value
                max -= step;
            }

            this.max = parseFloat(max.toFixed( this._precision()));
        }
    };

    return function (target) {
        $.widget('ui.slider', target, mixin);

        return $.ui.slider;
    };
});

Spamworldpro Mini