/** * Created by wisestone on 2018-10-12. */ 'use strict'; define(['app'], function (app) { app.directive('detectIssueEditor', ["$log", function ($log) { return { scope : { update : '&' }, restrict: 'E', link: function ($scope, $element, $attrs) { $(".support-ticket-content-w").click(function (event) { if (!$(event.target).hasClass("editForm")) { $scope.update(); } }); } }; }]) });