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
012ece9e
Commit
012ece9e
authored
Dec 16, 2015
by
Valentin Hervieu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use track by $index to avoid ticks to be re-added at each frame.
parent
bddea44e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
rzslider.js
dist/rzslider.js
+1
-1
rzslider.min.js
dist/rzslider.min.js
+1
-1
rzSliderTpl.html
src/rzSliderTpl.html
+1
-1
No files found.
dist/rzslider.js
View file @
012ece9e
...
...
@@ -1451,7 +1451,7 @@
'use strict'
;
$templateCache
.
put
(
'rzSliderTpl.html'
,
"<span class=rz-bar-wrapper><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class=
\"
rz-bar rz-selection
\"
ng-style=barStyle></span></span> <span class=rz-pointer></span> <span class=rz-pointer></span> <span class=
\"
rz-bubble rz-limit
\"
></span> <span class=
\"
rz-bubble rz-limit
\"
></span> <span class=rz-bubble></span> <span class=rz-bubble></span> <span class=rz-bubble></span><ul ng-show=showTicks class=rz-ticks><li ng-repeat=
\"
t in ticks
\"
class=tick ng-class=
\"
{selected: t.selected}
\"
ng-style=t.style><span ng-if=
\"
t.value != null && t.tooltip == null
\"
class=tick-value>{{ t.value }}</span> <span ng-if=
\"
t.value != null && t.tooltip != null
\"
class=tick-value uib-tooltip=
\"
{{ t.tooltip }}
\"
tooltip-placement={{t.tooltipPlacement}}>{{ t.value }}</span></li></ul>"
"<span class=rz-bar-wrapper><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class=
\"
rz-bar rz-selection
\"
ng-style=barStyle></span></span> <span class=rz-pointer></span> <span class=rz-pointer></span> <span class=
\"
rz-bubble rz-limit
\"
></span> <span class=
\"
rz-bubble rz-limit
\"
></span> <span class=rz-bubble></span> <span class=rz-bubble></span> <span class=rz-bubble></span><ul ng-show=showTicks class=rz-ticks><li ng-repeat=
\"
t in ticks
track by $index
\"
class=tick ng-class=
\"
{selected: t.selected}
\"
ng-style=t.style><span ng-if=
\"
t.value != null && t.tooltip == null
\"
class=tick-value>{{ t.value }}</span> <span ng-if=
\"
t.value != null && t.tooltip != null
\"
class=tick-value uib-tooltip=
\"
{{ t.tooltip }}
\"
tooltip-placement={{t.tooltipPlacement}}>{{ t.value }}</span></li></ul>"
);
}]);
...
...
dist/rzslider.min.js
View file @
012ece9e
This diff is collapsed.
Click to expand it.
src/rzSliderTpl.html
View file @
012ece9e
...
...
@@ -10,7 +10,7 @@
<span
class=
"rz-bubble"
></span>
<!-- // 7 Label above right slider handle -->
<span
class=
"rz-bubble"
></span>
<!-- // 8 Range label when the slider handles are close ex. 15 - 17 -->
<ul
ng-show=
"showTicks"
class=
"rz-ticks"
>
<!-- // 9 The ticks -->
<li
ng-repeat=
"t in ticks"
class=
"tick"
ng-class=
"{selected: t.selected}"
<li
ng-repeat=
"t in ticks
track by $index
"
class=
"tick"
ng-class=
"{selected: t.selected}"
ng-style=
"t.style"
>
<span
ng-if=
"t.value != null && t.tooltip == null"
class=
"tick-value"
>
{{ t.value }}
</span>
<span
ng-if=
"t.value != null && t.tooltip != null"
class=
"tick-value"
...
...
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