minor fix

This commit is contained in:
Xuan Sang LE 2018-03-05 22:57:33 +01:00
parent 88a78c7eef
commit 8ae2f529f7
2 changed files with 13 additions and 1 deletions

View File

@ -8,12 +8,16 @@
<span if={data.shortcut} class = "shortcut">{data.shortcut}</span>
</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 class="afx-corner-fix"></li>
</ul>
<script>
this.items = opts.child || []
if(opts.index != undefined)
this.index = opts.index
else
this.index = -1
var isRoot
var lastChecked = undefined
if(opts.rootid)
@ -48,6 +52,7 @@
self[k] = v
self.update()
}
self.root.push = function(e,u)
{
self.items.push(e)

View File

@ -150,6 +150,13 @@ class Blogger extends this.OS.GUI.BaseApplication
doc.replaceSelection "![](#{me._api.handler.shared}/#{r.result})"
, "Select image file", { mimes: ["image/.*"] }
},
{
name:"Youtube",
className: "fa fa-youtube",
action: (e) ->
doc = me.editor.codemirror.getDoc()
doc.replaceSelection "[[youtube:]]"
}
"|",
{
name: "preview",