From 0adb3cb442c5800c3a12be9d27ec8ddc7ad5c416 Mon Sep 17 00:00:00 2001 From: Nitin Hayaran Date: Tue, 12 Feb 2013 10:58:57 +0530 Subject: [PATCH] Showing selection indicator even for Single Slider --- css/jslider.css | 1 - js/jquery.slider.js | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/css/jslider.css b/css/jslider.css index 0e604bd..be7297c 100644 --- a/css/jslider.css +++ b/css/jslider.css @@ -36,5 +36,4 @@ .jslider-single .jslider-pointer-to, .jslider-single .jslider-value-to, - .jslider-single .jslider-bg .v, .jslider-limitless .jslider-label { display: none; } diff --git a/js/jquery.slider.js b/js/jquery.slider.js index 60c8677..92eb9b6 100644 --- a/js/jquery.slider.js +++ b/js/jquery.slider.js @@ -391,7 +391,9 @@ // redraw range line if( this.o.pointers[0] && this.o.pointers[1] ) this.o.value.css({ left: this.o.pointers[0].value.prc + "%", width: ( this.o.pointers[1].value.prc - this.o.pointers[0].value.prc ) + "%" }); - + else + this.o.value.css({ left: "0%", width: ( this.o.pointers[0].value.prc ) + "%" }); + this.o.labels[pointer.uid].value.html( this.nice( pointer.value.origin