(js) Improve sgColorPicker directive

- replaced sg-on-select by ng-model;
- set button background (no more wrapping necessary).
This commit is contained in:
Francis Lachapelle committed 2015-10-15 15:13:28 -04:00
1 parent b02a4f82a0
commit ddf97ebb13
4 files changed
+31 -33

No files matched your search

@@ -11,7 +11,7 @@
<md-toolbar ng-class="properties.calendar.getClassName('bg')">
<div class="md-toolbar-tools">
<!-- color -->
<sg-color-picker sg-on-select="properties.setColor(color)"><!-- color picker --></sg-color-picker>
<sg-color-picker ng-model="properties.calendar.color"><!-- color picker --></sg-color-picker>
<!-- name -->
<md-input-container>
<label><var:string label:value="Name"/></label>