Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
i20rzslider
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jedife
i20rzslider
Commits
7ae70d2a
Commit
7ae70d2a
authored
Feb 07, 2014
by
Rafal Zajac
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'kvindasAB-master'
parents
80e2c59c
ec8b49ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
2 deletions
+33
-2
rzslider.js
rzslider.js
+33
-2
No files found.
rzslider.js
View file @
7ae70d2a
...
...
@@ -215,10 +215,10 @@ function throttle(func, wait, options) {
});
// Recalculate slider view dimensions
this
.
scope
.
$on
(
'reCalcViewDimensions'
,
angular
.
bind
(
this
,
this
.
calcViewDimensions
));
this
.
scope
.
$on
(
'reCalcViewDimensions'
,
angular
.
bind
(
this
,
this
.
resetSlider
));
// Recalculate stuff if view port dimensions have changed
angular
.
element
(
window
).
on
(
'resize'
,
angular
.
bind
(
this
,
this
.
calcViewDimensions
));
angular
.
element
(
window
).
on
(
'resize'
,
angular
.
bind
(
this
,
this
.
resetSlider
));
this
.
initRun
=
true
;
...
...
@@ -256,8 +256,39 @@ function throttle(func, wait, options) {
if
(
newValue
===
oldValue
)
return
;
thrHigh
();
});
this
.
scope
.
$watch
(
'rzSliderFloor'
,
function
(
newValue
,
oldValue
){
if
(
newValue
===
oldValue
)
return
;
self
.
resetSlider
();
});
this
.
scope
.
$watch
(
'rzSliderCeil'
,
function
(
newValue
,
oldValue
){
if
(
newValue
===
oldValue
)
return
;
self
.
resetSlider
();
});
this
.
scope
.
$watch
(
'rzSliderForceRender'
,
function
(
newValue
,
oldValue
){
self
.
resetLabelsWidth
();
thrLow
();
thrHigh
();
self
.
resetSlider
();
});
},
resetSlider
:
function
()
{
this
.
setMinAndMax
();
this
.
calcViewDimensions
();
this
.
updateCeilLab
();
this
.
updateFloorLab
();
},
resetLabelsWidth
:
function
()
{
this
.
minLab
.
rzsv
=
undefined
;
this
.
maxLab
.
rzsv
=
undefined
;
},
/**
* Initialize slider handles positions and labels
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment