mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-28 10:18:21 +01:00
fix
This commit is contained in:
parent
662c3f87d0
commit
3e388d2b80
@ -9,17 +9,19 @@ class SpotlightDialog extends this.OS.GUI.BaseDialog
|
|||||||
me = @
|
me = @
|
||||||
@height = ($ @scheme).css("height")
|
@height = ($ @scheme).css("height")
|
||||||
@container = @find "container"
|
@container = @find "container"
|
||||||
console.log "new dia"
|
|
||||||
($ @scheme).css("height", "45px")
|
($ @scheme).css("height", "45px")
|
||||||
#fn = (e) ->
|
@fn = (e) ->
|
||||||
# if e.keyCode is 27
|
if e.which is 27
|
||||||
# ($ document).unbind "keyup", fn
|
($ document).unbind "click", me.fn1
|
||||||
# me.handler(e) if me.handler
|
($ document).unbind "keyup", me.fn
|
||||||
#($ document).keyup fn
|
me.handler(e) if me.handler
|
||||||
|
me.quit()
|
||||||
|
($ document).keyup @fn
|
||||||
|
|
||||||
@fn1 = (e) ->
|
@fn1 = (e) ->
|
||||||
if not $(e.target).closest(me.scheme).length
|
if not $(e.target).closest(me.scheme).length
|
||||||
($ document).unbind "click", me.fn1
|
($ document).unbind "click", me.fn1
|
||||||
|
($ document).unbind "keyup", me.fn
|
||||||
me.handler(e) if me.handler
|
me.handler(e) if me.handler
|
||||||
me.quit()
|
me.quit()
|
||||||
|
|
||||||
@ -33,6 +35,7 @@ class SpotlightDialog extends this.OS.GUI.BaseDialog
|
|||||||
me.handler(e) if me.handler
|
me.handler(e) if me.handler
|
||||||
me._gui.openWith e.data
|
me._gui.openWith e.data
|
||||||
($ document).unbind "click", me.fn1
|
($ document).unbind "click", me.fn1
|
||||||
|
($ document).unbind "keyup", me.fn
|
||||||
me.quit()
|
me.quit()
|
||||||
|
|
||||||
|
|
||||||
@ -57,6 +60,7 @@ class SpotlightDialog extends this.OS.GUI.BaseDialog
|
|||||||
@.handler(e) if @.handler
|
@.handler(e) if @.handler
|
||||||
@._gui.openWith sel
|
@._gui.openWith sel
|
||||||
($ document).unbind "click", @fn1
|
($ document).unbind "click", @fn1
|
||||||
|
($ document).unbind "keyup", @fn
|
||||||
@.quit()
|
@.quit()
|
||||||
else
|
else
|
||||||
text = @searchbox.value
|
text = @searchbox.value
|
||||||
|
Loading…
Reference in New Issue
Block a user