Commit cc347a84 authored by jonnybradley's avatar jonnybradley

[FIX] JSLint: Part 2 of JSLint* corrections: various js - mostly missing line...

[FIX] JSLint: Part 2 of JSLint* corrections: various js - mostly missing line terminations and var declarations (*actually phpStorm code inspections)
parent 16524a76
......@@ -172,7 +172,7 @@ elFinder.prototype.commands.info = function() {
// start tiki
spinner : '<span>{text}</span> <span class="'+spclass+' '+spclass+'-'+'{id}"/>'
// end tiki
}
};
this.alwaysEnabled = true;
this.updateOnSelect = false;
......@@ -184,11 +184,11 @@ elFinder.prototype.commands.info = function() {
$.each(msg, function(k, v) {
msg[k] = fm.i18n(v);
});
}
};
this.getstate = function() {
return 0;
}
};
this.exec = function(hashes) {
var files = this.files(hashes);
......@@ -354,7 +354,7 @@ elFinder.prototype.commands.info = function() {
content.push(row.replace(l, msg.kind).replace(v, msg.files));
content.push(row.replace(l, msg.size).replace(v, fm.formatSize(size)));
} else {
content.push(row.replace(l, msg.kind).replace(v, dcnt == cnt ? msg.folders : msg.folders+' '+dcnt+', '+msg.files+' '+(cnt-dcnt)))
content.push(row.replace(l, msg.kind).replace(v, dcnt == cnt ? msg.folders : msg.folders+' '+dcnt+', '+msg.files+' '+(cnt-dcnt)));
content.push(row.replace(l, msg.size).replace(v, tpl.spinner.replace('{text}', msg.calc)));
count = $.map(files, function(f) { return f.hash });
......@@ -364,7 +364,7 @@ elFinder.prototype.commands.info = function() {
view = view.replace('{title}', title).replace('{content}', content.join(''));
dialog = fm.dialog(view, opts);
dialog.attr('id', id)
dialog.attr('id', id);
// start tiki
if (file.write) {
......@@ -414,4 +414,4 @@ elFinder.prototype.commands.info = function() {
}
}
};
......@@ -67,7 +67,7 @@
plain: 1
}));
};
}
};
$(document).on('click', '.activity a.comment', function () {
var myReload = createReload(this);
$(this).serviceDialog({
......
......@@ -70,7 +70,7 @@
});
$(document).on('change', '.preference :radio', function () {
var childBlock = $(this).data('tiki-admin-child-block')
var childBlock = $(this).data('tiki-admin-child-block');
if ($(this).prop('checked')) {
$(childBlock).show('fast');
......
......@@ -45,7 +45,7 @@ $("#connect_list_btn").find("a").click(function() {
}
}
return $dl;
}
};
var $din = $("<div />");
var $tabs = $("<ul />").appendTo($din); // list for tabs
......@@ -164,4 +164,4 @@ var connectVote = function(pref, vote, el) {
}).error(function (){
alert(tr("Tiki Connect is not set up properly. Please visit admin/connect/settings to configure the feature."))
});
}
\ No newline at end of file
};
\ No newline at end of file
......@@ -133,7 +133,7 @@
var strLat = '' + lat;
strLat.replace(',', '.');
return strLon + ',' + strLat + ',' + zoom;
};
}
$.fn.createMap = function () {
this.each(function () {
......@@ -191,7 +191,7 @@
return feature.attributes[intent + "-" + type] ||
feature.attributes[type] ||
def;
}
};
container.defaultStyleMap = new OpenLayers.StyleMap({
"default": new OpenLayers.Style(OpenLayers.Util.applyDefaults({
......@@ -976,7 +976,7 @@
});
return buttons;
}
};
container.streetview.addButton('Cancel', function (canvas) {
$(canvas).dialog('close');
......@@ -1547,7 +1547,7 @@
if (this.activePopup) {
if (this.activePopup.myclose) {
var f = this.activePopup.myclose
var f = this.activePopup.myclose;
this.activePopup.myclose = null;
f();
} else {
......
......@@ -76,7 +76,7 @@
$(this).toggle('slow');
});
return false;
})
});
$(document).on('change', '.workspace-ui .pages .name', function () {
if ($(this).val() !== '{namespace}' && $(this).val().length) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment