1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| /**
| * Created by wisestone on 2018-03-26.
| */
| 'use strict';
|
| define(['app',
| 'angular'],
| function (app, angular) {
|
| app.directive('owlTaskAutoButton', ["$log",
| function ($log) {
| return {
| restrict : 'A',
| link : function (scope, element, attr) {
|
| $(element).click(function () {
| $(".task-textarea-btn").addClass("hide");
|
| // 생성 버튼이면 텍스트 필드에 포커스를 주자
| if ($(element).hasClass("task-add-btn")) {
| $(element).parent().parent().find(".task-textarea").focus();
| }
| });
| }
| };
| }])
| });
|
|