14 lines
1.6 KiB
JavaScript
14 lines
1.6 KiB
JavaScript
/**
|
|
* This Software is the property of Data Development and is protected
|
|
* by copyright law - it is NOT Freeware.
|
|
* Any unauthorized use of this software without a valid license
|
|
* is a violation of the license agreement and will be prosecuted by
|
|
* civil and criminal law.
|
|
* http://www.shopmodule.com
|
|
*
|
|
* @license
|
|
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
|
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
|
|
* @link http://www.oxidmodule.com
|
|
*/
|
|
!function(i){"use strict";let e={options:{fieldMinId:"d3extsearch_PriceFilterfieldMinId",fieldMaxId:"d3extsearch_PriceFilterfieldMaxId",infoMinId:"d3extsearch_PriceFilterPriceInfoMinId",infoMaxId:"d3extsearch_PriceFilterPriceInfoMaxId",formId:"d3searchfilterform",precision:100},_create:function(){let e=this.options,n=this.element;void 0!==e.limitMin&&(i("input#"+e.fieldMinId+",input#"+e.fieldMaxId).hide(),i(n).slider({range:!0,min:e.limitMin,max:e.limitMax,step:100,values:[e.stepsMin,e.stepsMax],slide:function(){i("#"+e.infoMinId).html(i(n).slider("option","values")[0]/e.precision),i("#"+e.infoMaxId).html(i(n).slider("option","values")[1]/e.precision)},change:function(){i("input#"+e.fieldMinId).val(i(n).slider("option","values")[0]/e.precision),i("input#"+e.fieldMaxId).val(i(n).slider("option","values")[1]/e.precision),i("#"+e.infoMinId).html(i(n).slider("option","values")[0]/e.precision),i("#"+e.infoMaxId).html(i(n).slider("option","values")[1]/e.precision),d3_extsearch_popup.popup.load(),i("form#"+e.formId).submit()}}))}};i.widget("ui.d3extsearchslider",e)}(jQuery); |