Fix a checksley error on objects detail pages
parent
a2a3c7012f
commit
61faee88d9
|
@ -138,9 +138,11 @@ IssueDirective = ($tgrepo, $log, $location, $confirm) ->
|
|||
|
||||
link = ($scope, $el, $attrs) ->
|
||||
$ctrl = $el.controller()
|
||||
form = $el.checksley()
|
||||
linkSidebar($scope, $el, $attrs, $ctrl)
|
||||
|
||||
if $el.is("form")
|
||||
form = $el.checksley()
|
||||
|
||||
$el.on "click", ".save-issue", (event) ->
|
||||
if not form.validate()
|
||||
return
|
||||
|
@ -157,7 +159,6 @@ IssueDirective = ($tgrepo, $log, $location, $confirm) ->
|
|||
$el.on "focus", ".add-comment textarea", (event) ->
|
||||
$(this).addClass('active')
|
||||
|
||||
|
||||
$el.on "click", ".us-activity-tabs li a", (event) ->
|
||||
$el.find(".us-activity-tabs li a").toggleClass("active")
|
||||
$el.find(".us-activity section").toggleClass("hidden")
|
||||
|
|
|
@ -129,9 +129,11 @@ TaskDirective = ($tgrepo, $log, $location, $confirm) ->
|
|||
|
||||
link = ($scope, $el, $attrs) ->
|
||||
$ctrl = $el.controller()
|
||||
form = $el.checksley()
|
||||
linkSidebar($scope, $el, $attrs, $ctrl)
|
||||
|
||||
if $el.is("form")
|
||||
form = $el.checksley()
|
||||
|
||||
$el.on "click", ".save-task", (event) ->
|
||||
if not form.validate()
|
||||
return
|
||||
|
@ -148,7 +150,6 @@ TaskDirective = ($tgrepo, $log, $location, $confirm) ->
|
|||
$el.on "focus", ".add-comment textarea", (event) ->
|
||||
$(this).addClass('active')
|
||||
|
||||
|
||||
$el.on "click", ".us-activity-tabs li a", (event) ->
|
||||
$el.find(".us-activity-tabs li a").toggleClass("active")
|
||||
$el.find(".us-activity section").toggleClass("hidden")
|
||||
|
|
|
@ -142,9 +142,11 @@ UsDirective = ($tgrepo, $log, $location, $confirm) ->
|
|||
|
||||
link = ($scope, $el, $attrs) ->
|
||||
$ctrl = $el.controller()
|
||||
form = $el.checksley()
|
||||
linkSidebar($scope, $el, $attrs, $ctrl)
|
||||
|
||||
if $el.is("form")
|
||||
form = $el.checksley()
|
||||
|
||||
$el.on "click", ".save-us", (event) ->
|
||||
if not form.validate()
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue