Skip to content

Instantly share code, notes, and snippets.

@jsCommander
Created November 13, 2019 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsCommander/7055df2d2f886a3e8d6b30682822e577 to your computer and use it in GitHub Desktop.
Save jsCommander/7055df2d2f886a3e8d6b30682822e577 to your computer and use it in GitHub Desktop.
$rootScope.mouseDown = (e) ->
setTimeout ->
b = e.button
t = $(e.target)[0]
if t.parentNode
c = $(t.parentNode)[0].className
i = 0
dd = c
while i < 3
t = $(t.parentNode)[0]
if !t || !t.parentNode
break
dd += ' ' + $(t.parentNode)[0].className
i++
if (c&&!~c.indexOf('view')&&!~dd.indexOf('quickdate-popup open')&&!~c.indexOf('editedcell')&&!~c.indexOf('booltd')&&!~c.indexOf('rcont')&&!~c.indexOf('findindict')&&!~c.indexOf('finddictresuts')&&!~c.indexOf('dateparamval')&&$stateParams.tab=='params')
$rootScope.unseteditcell()
# Закрываем выпадающий список в редактировании параметра
$rootScope.dictFilter.findindictmode = false
return
, 300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment