Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberplz committed Feb 23, 2016
1 parent 46d94b0 commit a049ad1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ Default option is the first item.
<input color-picker
color-picker-model="var"
color-picker-show-value="true, false"
color-picker-position = "right, left, top, bottom"
color-picker-fixed-position = "false, true"
color-picker-position="right, left, top, bottom"
color-picker-fixed-position="false, true"
color-picker-show-input-spinner="true"
color-picker-spinner-rgba-steps="1;1;1;0.1"
color-picker-spinner-hsla-steps="1;1;1;0.1"
color-picker-show-cancel-button="false, true"
color-picker-cancel-button-class="btn btn-default btn-xs"
/>
```

Expand Down
4 changes: 2 additions & 2 deletions js/color-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ colorPicker.directive('colorPicker', ['$document', '$compile', 'ColorHelper', fu

}],
link: function (scope, element, attr) {
var template, close = false, initialValue = '';
initialValue = scope.colorPickerModel;
var template, close = false, initialValue = '';

if (scope.colorPickerModel === undefined) {
scope.colorPickerModel = '#008fff';
Expand Down Expand Up @@ -392,6 +391,7 @@ colorPicker.directive('colorPicker', ['$document', '$compile', 'ColorHelper', fu
element.on('click', open);
function open(event) {
var box;
initialValue = scope.colorPickerModel;
scope.$apply(function () {
scope.show = true;
});
Expand Down
13 changes: 3 additions & 10 deletions js/color-picker.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a049ad1

Please sign in to comment.