/** * 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(); } }); } }; }]) });