jslinting the preview js
This commit is contained in:
parent
9f9cac02fe
commit
cdda6235d7
1 changed files with 3 additions and 5 deletions
|
|
@ -5,7 +5,6 @@
|
||||||
$connect = YAHOO.util.Connect,
|
$connect = YAHOO.util.Connect,
|
||||||
$json = YAHOO.lang.JSON,
|
$json = YAHOO.lang.JSON,
|
||||||
$dom = YAHOO.util.Dom,
|
$dom = YAHOO.util.Dom,
|
||||||
shown = false,
|
|
||||||
assetId, panel, panelRendered, onHide;
|
assetId, panel, panelRendered, onHide;
|
||||||
|
|
||||||
function absolute(url) {
|
function absolute(url) {
|
||||||
|
|
@ -47,7 +46,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
abs = absolute(url),
|
abs = absolute(url);
|
||||||
b = base();
|
b = base();
|
||||||
|
|
||||||
if (abs.indexOf(b) === 0) {
|
if (abs.indexOf(b) === 0) {
|
||||||
|
|
@ -83,8 +82,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function withVariables(k) {
|
function withVariables(k) {
|
||||||
var inBox = document.getElementById('previewVars').value,
|
var inBox = document.getElementById('previewVars').value;
|
||||||
url;
|
|
||||||
|
|
||||||
|
|
||||||
function finish(raw) {
|
function finish(raw) {
|
||||||
|
|
@ -154,7 +152,7 @@
|
||||||
draggable : false,
|
draggable : false,
|
||||||
underlay : 'shadow',
|
underlay : 'shadow',
|
||||||
modal : true,
|
modal : true,
|
||||||
fixedcenter : true,
|
fixedcenter : true
|
||||||
});
|
});
|
||||||
$event.on('previewFetch', 'click', fetch);
|
$event.on('previewFetch', 'click', fetch);
|
||||||
$event.on('preview', 'click', render);
|
$event.on('preview', 'click', render);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue