Skip to content

Commit

Permalink
Fix order of parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Bjelkholm committed Aug 2, 2015
1 parent 1ebcd66 commit cd178d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ <h3>Usage</h3>
<div id="demo">

<h2>
Demo
Demo
</h2>
<div>
<div class="value">Progress: <input type="number" ng-model="counter"></div>
Expand Down Expand Up @@ -237,14 +237,14 @@ <h2>
<div class="value">
Height: <input type="text" ng-model="height">
</div>
<a href="#demo" ng-click="new_height(height)">Change height</a>
<a href="#demo" ng-click="new_height($event, height)">Change height</a>
</div>
<hr>
<div>
<div class="value">
Color: <input type="text" ng-model="color">
</div>
<a href="#demo" ng-click="new_color(color)">Change color</a>
<a href="#demo" ng-click="new_color($event, color)">Change color</a>
</div>
</div>
<div id="demo_contained">
Expand Down Expand Up @@ -369,12 +369,12 @@ <h2>License</h2>
$scope.progressbar.set(ngProgress.status() + 9);
}

$scope.new_color = function(color, $event) {
$scope.new_color = function($event, color) {
$event.preventDefault();
$scope.progressbar.setColor(color);
}

$scope.new_height = function(new_height, $event) {
$scope.new_height = function($event, new_height) {
$event.preventDefault();
$scope.progressbar.setHeight(new_height);
}
Expand Down

0 comments on commit cd178d5

Please sign in to comment.