mirror of
https://github.com/avecms/AVE.cms.git
synced 2025-08-13 05:56:44 +00:00
v 3.22
This commit is contained in:
admin
lang
templates
blocks
documents
js
navigation
request
rubs
settings
sysblocks
templates
class
fields
image_mega
image_single
tpl
multi_line
multi_line_simple
multi_line_slim
functions
func.block.phpfunc.breadcrumbs.phpfunc.common.phpfunc.fields.phpfunc.navigation.phpfunc.parserequest.php
inc
index.phpinstall
lib
bootstrap
css
bootstrap-theme.cssbootstrap-theme.css.mapbootstrap-theme.min.cssbootstrap-theme.min.css.mapbootstrap.cssbootstrap.css.mapbootstrap.min.cssbootstrap.min.css.map
fonts
glyphicons-halflings-regular.eotglyphicons-halflings-regular.svgglyphicons-halflings-regular.ttfglyphicons-halflings-regular.woffglyphicons-halflings-regular.woff2
js
redactor
codemirror
addon
comment
edit
fold
hint
lint
merge
mode
runmode
search
selection
tern
lib
mode
clike
css
htmlmixed
javascript
php
sql
theme
abcdef.cssambiance.csscobalt.csscolorforth.cssdracula.cssduotone-dark.cssduotone-light.csseclipse.csserlang-dark.cssicecoder.csslesser-dark.cssliquibyte.cssmaterial.cssmdn-like.cssmidnight.cssmonokai.cssnight.csspanda-syntax.csspastel-on-dark.cssrubyblue.cssseti.csssolarized.cssthe-matrix.cssttcn.csstwilight.cssvibrant-ink.cssxq-dark.cssxq-light.cssyeti.css
elrte
css
elrte-inner.csselrte.full.css
smoothness
images
ui-bg_flat_0_aaaaaa_40x100.pngui-bg_flat_75_ffffff_40x100.pngui-bg_glass_55_fbf9ee_1x400.pngui-bg_glass_65_ffffff_1x400.pngui-bg_glass_75_dadada_1x400.pngui-bg_glass_75_e6e6e6_1x400.pngui-bg_glass_95_fef1ec_1x400.pngui-bg_highlight-soft_75_cccccc_1x100.pngui-icons_222222_256x240.pngui-icons_2e83ff_256x240.pngui-icons_454545_256x240.pngui-icons_888888_256x240.pngui-icons_cd0a0a_256x240.png
jquery-ui-1.8.13.custom.cssimages
elrte-toolbar.pnggoogle-maps.pngiframe.pngloading.gifmedia-director.pngmedia-flash.pngmedia-quicktime.pngmedia-realaudio.pngmedia-rutube.pngmedia-vimeo.pngmedia-winmedia.pngmedia-youtube.pngoutline-div.pngoutline-p.pngpagebreak.gifpixel.gif
smileys
yandex-maps.pngjs
elrte.full.jselrte.min.js
i18n
elrte.YOUR_LANG.jselrte.ar.jselrte.ca.jselrte.cs.jselrte.da.jselrte.de.jselrte.en.jselrte.es.jselrte.fa.jselrte.fr.jselrte.hr.jselrte.hu.jselrte.it.jselrte.jp.jselrte.ko.jselrte.lv.jselrte.nl.jselrte.pl.jselrte.pt_BR.jselrte.ru.jselrte.sk.jselrte.th.jselrte.tr.jselrte.uk.jselrte.vi.jselrte.zh_CN.jselrte.zh_TW.js
jquery-ui-1.8.13.custom.min.js
38
lib/redactor/codemirror/addon/tern/tern.js
vendored
38
lib/redactor/codemirror/addon/tern/tern.js
vendored
@ -334,7 +334,11 @@
|
||||
tip.appendChild(document.createTextNode(tp.rettype ? ") ->\u00a0" : ")"));
|
||||
if (tp.rettype) tip.appendChild(elt("span", cls + "type", tp.rettype));
|
||||
var place = cm.cursorCoords(null, "page");
|
||||
ts.activeArgHints = makeTooltip(place.right + 1, place.bottom, tip);
|
||||
var tooltip = ts.activeArgHints = makeTooltip(place.right + 1, place.bottom, tip)
|
||||
setTimeout(function() {
|
||||
tooltip.clear = onEditorActivity(cm, function() {
|
||||
if (ts.activeArgHints == tooltip) closeArgHints(ts) })
|
||||
}, 20)
|
||||
}
|
||||
|
||||
function parseFnType(text) {
|
||||
@ -567,7 +571,7 @@
|
||||
return {type: "part",
|
||||
name: data.name,
|
||||
offsetLines: from.line,
|
||||
text: doc.getRange(from, Pos(endLine, 0))};
|
||||
text: doc.getRange(from, Pos(endLine, end.line == endLine ? null : 0))};
|
||||
}
|
||||
|
||||
// Generic utilities
|
||||
@ -604,11 +608,8 @@
|
||||
}
|
||||
function clear() {
|
||||
cm.state.ternTooltip = null;
|
||||
if (!tip.parentNode) return;
|
||||
cm.off("cursorActivity", clear);
|
||||
cm.off('blur', clear);
|
||||
cm.off('scroll', clear);
|
||||
fadeOut(tip);
|
||||
if (tip.parentNode) fadeOut(tip)
|
||||
clearActivity()
|
||||
}
|
||||
var mouseOnTip = false, old = false;
|
||||
CodeMirror.on(tip, "mousemove", function() { mouseOnTip = true; });
|
||||
@ -619,9 +620,20 @@
|
||||
}
|
||||
});
|
||||
setTimeout(maybeClear, ts.options.hintDelay ? ts.options.hintDelay : 1700);
|
||||
cm.on("cursorActivity", clear);
|
||||
cm.on('blur', clear);
|
||||
cm.on('scroll', clear);
|
||||
var clearActivity = onEditorActivity(cm, clear)
|
||||
}
|
||||
|
||||
function onEditorActivity(cm, f) {
|
||||
cm.on("cursorActivity", f)
|
||||
cm.on("blur", f)
|
||||
cm.on("scroll", f)
|
||||
cm.on("setDoc", f)
|
||||
return function() {
|
||||
cm.off("cursorActivity", f)
|
||||
cm.off("blur", f)
|
||||
cm.off("scroll", f)
|
||||
cm.off("setDoc", f)
|
||||
}
|
||||
}
|
||||
|
||||
function makeTooltip(x, y, content) {
|
||||
@ -650,7 +662,11 @@
|
||||
}
|
||||
|
||||
function closeArgHints(ts) {
|
||||
if (ts.activeArgHints) { remove(ts.activeArgHints); ts.activeArgHints = null; }
|
||||
if (ts.activeArgHints) {
|
||||
if (ts.activeArgHints.clear) ts.activeArgHints.clear()
|
||||
remove(ts.activeArgHints)
|
||||
ts.activeArgHints = null
|
||||
}
|
||||
}
|
||||
|
||||
function docValue(ts, doc) {
|
||||
|
Reference in New Issue
Block a user