Created
November 13, 2019 12:35
-
-
Save jsCommander/7055df2d2f886a3e8d6b30682822e577 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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