mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 17:58:22 +01:00
minor fix
This commit is contained in:
parent
88a78c7eef
commit
8ae2f529f7
@ -8,12 +8,16 @@
|
|||||||
<span if={data.shortcut} class = "shortcut">{data.shortcut}</span>
|
<span if={data.shortcut} class = "shortcut">{data.shortcut}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<afx-menu if={data.child != null && data.child.length > 0} child={data.child} onmenuselect = {data.onmenuselect} observable = {parent.root.observable} rootid = {parent.rid}></afx-menu>
|
<afx-menu ref = "submenus" index = {i} if={data.child != null && data.child.length > 0} child={data.child} onmenuselect = {data.onmenuselect} observable = {parent.root.observable} rootid = {parent.rid}></afx-menu>
|
||||||
</li>
|
</li>
|
||||||
<li class="afx-corner-fix"></li>
|
<li class="afx-corner-fix"></li>
|
||||||
</ul>
|
</ul>
|
||||||
<script>
|
<script>
|
||||||
this.items = opts.child || []
|
this.items = opts.child || []
|
||||||
|
if(opts.index != undefined)
|
||||||
|
this.index = opts.index
|
||||||
|
else
|
||||||
|
this.index = -1
|
||||||
var isRoot
|
var isRoot
|
||||||
var lastChecked = undefined
|
var lastChecked = undefined
|
||||||
if(opts.rootid)
|
if(opts.rootid)
|
||||||
@ -48,6 +52,7 @@
|
|||||||
self[k] = v
|
self[k] = v
|
||||||
self.update()
|
self.update()
|
||||||
}
|
}
|
||||||
|
|
||||||
self.root.push = function(e,u)
|
self.root.push = function(e,u)
|
||||||
{
|
{
|
||||||
self.items.push(e)
|
self.items.push(e)
|
||||||
|
@ -150,6 +150,13 @@ class Blogger extends this.OS.GUI.BaseApplication
|
|||||||
doc.replaceSelection "![](#{me._api.handler.shared}/#{r.result})"
|
doc.replaceSelection "![](#{me._api.handler.shared}/#{r.result})"
|
||||||
, "Select image file", { mimes: ["image/.*"] }
|
, "Select image file", { mimes: ["image/.*"] }
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name:"Youtube",
|
||||||
|
className: "fa fa-youtube",
|
||||||
|
action: (e) ->
|
||||||
|
doc = me.editor.codemirror.getDoc()
|
||||||
|
doc.replaceSelection "[[youtube:]]"
|
||||||
|
}
|
||||||
"|",
|
"|",
|
||||||
{
|
{
|
||||||
name: "preview",
|
name: "preview",
|
||||||
|
Loading…
Reference in New Issue
Block a user