mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-19 23:40:00 +02:00
fix stuff
This commit is contained in:
@ -323,7 +323,7 @@ class FileDiaLog extends BaseDialog
|
||||
return me.notify __("Only {0} could be selected", me.data.mimes.join(",")) unless m
|
||||
d = f.path
|
||||
d = f.path.asFileHandler().parent() if f.type is "file"
|
||||
me.handler d, ($ filename).val(), f.path if me.handler
|
||||
me.handler d, ($ filename).val(), f.path, f if me.handler
|
||||
#sel = if me.data and me.data.selection then me.data.selection else "file"
|
||||
#me.handler f, ($ filename).val() if me.handler and ((f.type is sel) or (sel is "*"))
|
||||
me.quit()
|
||||
|
@ -41,12 +41,13 @@
|
||||
{
|
||||
if(!self.enable) return
|
||||
opts.swon = !self.swon
|
||||
self.swon = opts.swon
|
||||
var data = {
|
||||
id: self.rid,
|
||||
data: opts.swon
|
||||
}
|
||||
if(self.onchange)
|
||||
self.onchange(data)
|
||||
if(opts.onchange)
|
||||
opts.onchange(data)
|
||||
if(self.root.observable)
|
||||
self.root.observable.trigger("switch", data)
|
||||
|
||||
|
Reference in New Issue
Block a user