Skip to content

Commit 1ee4457

Browse files
tomchivertonValentinH
authored andcommitted
IE8 support (#314)
* IE8 support IE8 requires the ability to use the alternative directive syntax : <div rzslider ... ></div> Fixes #313 * Update for new default template * New template for IE8 support * Update for new template * oops * Suggested fixes for #314
1 parent 5d9c66a commit 1ee4457

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/rzSliderTpl.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<div class="rzslider">
12
<span class="rz-bar-wrapper"><span class="rz-bar"></span></span> <!-- // 0 The slider bar -->
23
<span class="rz-bar-wrapper">
34
<span class="rz-bar rz-selection" ng-style="barStyle"></span>
@@ -20,3 +21,4 @@
2021
<span ng-if="t.legend != null" class="rz-tick-legend">{{ t.legend }}</span>
2122
</li>
2223
</ul>
24+
</div>

src/rzslider.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1903,7 +1903,8 @@
19031903
'use strict';
19041904

19051905
return {
1906-
restrict: 'E',
1906+
restrict: 'AE',
1907+
replace: true,
19071908
scope: {
19081909
rzSliderModel: '=?',
19091910
rzSliderHigh: '=?',

src/rzslider.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
@import 'variables.less';
1010

11-
rzslider {
11+
.rzslider {
1212
display: inline-block;
1313
position: relative;
1414
height: @barDimension;

0 commit comments

Comments
 (0)