(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
2015-10-15 15:13:28 -04:00
parent b02a4f82a0
commit ddf97ebb13
4 changed files with 31 additions and 33 deletions
@@ -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>