Compare View
Commits (2)
-
Merge branch 'master' of timesfun.net:TRUONG/t-shats
Changes
Showing 5 changed files Side-by-side Diff
app/images/trash-hover.png
2.77 KB
app/images/trash.png
app/index.html
app/scripts/controllers/tshirtdesign.js
... | ... | @@ -107,7 +107,7 @@ define(['app'], function (app) { |
107 | 107 | var pointer = canvas.getPointer(options.e); |
108 | 108 | if (pointer.x >= 567 && pointer.y >= 620 && pointer.x <= 600 && pointer.y <= 670){ |
109 | 109 | canvas.getActiveObject().remove(); |
110 | - $('.design-content .trash-design').css({'opacity':'1'}); | |
110 | + $('.design-content .trash-design img').attr({'src':'images/trash.png'}); | |
111 | 111 | return; |
112 | 112 | } |
113 | 113 | |
... | ... | @@ -156,9 +156,9 @@ define(['app'], function (app) { |
156 | 156 | function onIllustrationMoving(options) { |
157 | 157 | var pointer = canvas.getPointer(options.e); |
158 | 158 | if (pointer.x >= 567 && pointer.y >= 620 && pointer.x <= 600 && pointer.y <= 670){ |
159 | - $('.design-content .trash-design').css({'opacity':'0.5'}); | |
159 | + $('.design-content .trash-design img').attr({'src':'images/trash-hover.png'}); | |
160 | 160 | }else{ |
161 | - $('.design-content .trash-design').css({'opacity':'1'}); | |
161 | + $('.design-content .trash-design img').attr({'src':'images/trash.png'}); | |
162 | 162 | } |
163 | 163 | } |
164 | 164 |
app/views/tshirt-design.html
... | ... | @@ -61,6 +61,7 @@ |
61 | 61 | <!--<span ng-click="redoCanvas()" class="fa fa-repeat"> Redo</span><br>--> |
62 | 62 | <img src="images/trash.png" alt="trash design" /> |
63 | 63 | </div> |
64 | + <img style="display:none" src="images/trash-hover.png" alt="trash-hover cache" /> | |
64 | 65 | </div> |
65 | 66 | </section> |
66 | 67 | </div> |