Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-01-25 23:45:12 +03:00
parent 3f72362734
commit 9e6cce7477

View File

@ -605,6 +605,7 @@ var DialogsActions = actions.Actions({
.append($('<div>')
.text('Features: ' + that.getHandlerSourceTags(action).join(', ')))
.append($('<hr>'))
// parse the action doc...
.append($('<pre>')
.html((doc[action][1] || '')
// html stuff...
@ -625,7 +626,11 @@ var DialogsActions = actions.Actions({
// action links...
.replace(/(\s)(\.([\w_]+[\w\d_]*)\([^)]*\))/g,
'$1<a href="#" onclick="ig.showDoc(\'$3\')">$2</a>')
function(match, a, b, c){
return c == action ?
`${a}<i>${b}</i>`
: `${a}<a href="#" onclick="ig.showDoc(\'${c}\')">${b}</a>`
})
)))
})