style: drop redundant semicolons after function declarations (filegen templates + static js)
This commit is contained in:
parent
1491db51e3
commit
1c88254a06
18 changed files with 33 additions and 33 deletions
|
|
@ -68,7 +68,7 @@
|
|||
} while ( elem = elem.parentNode );
|
||||
|
||||
return getRGB(color);
|
||||
};
|
||||
}
|
||||
|
||||
// Some named colors to work with
|
||||
// From Interface by Stefan Petre
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ function g_enhanceTextarea (ta, opt) {
|
|||
}
|
||||
|
||||
ta.data("wh-enhanced", true);
|
||||
};
|
||||
}
|
||||
|
||||
$WH.createOptionsMenuWidget = function (id, txt, opt) {
|
||||
var chevron = $WH.createOptionsMenuWidget.chevron;
|
||||
|
|
|
|||
|
|
@ -2961,7 +2961,7 @@ Listview.extraCols = {
|
|||
var mText = ConditionList.createCell(row.condition);
|
||||
Markup.printHtml(mText, td);
|
||||
|
||||
return;
|
||||
|
||||
},
|
||||
getVisibleText: function(row)
|
||||
{
|
||||
|
|
@ -3875,7 +3875,7 @@ Listview.funcBox = {
|
|||
}
|
||||
);
|
||||
}
|
||||
return;
|
||||
|
||||
},
|
||||
|
||||
coFlagOutOfDate: function(comment)
|
||||
|
|
@ -3975,7 +3975,7 @@ Listview.funcBox = {
|
|||
}
|
||||
// aowow: custom end
|
||||
|
||||
return;
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ Listview.templates = {
|
|||
$(wrapper).append(revText);
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
},
|
||||
getVisibleText: function(guide)
|
||||
{
|
||||
|
|
@ -359,7 +359,7 @@ Listview.templates = {
|
|||
span.addClass('q2');
|
||||
|
||||
$(td).append(span);
|
||||
return;
|
||||
|
||||
},
|
||||
sortFunc: function(a, b)
|
||||
{
|
||||
|
|
@ -2208,7 +2208,7 @@ Listview.templates = {
|
|||
a.addClass('listview-cleartext');
|
||||
a.attr('href', '?user=' + user.username);
|
||||
$(td).append(a);
|
||||
return;
|
||||
|
||||
},
|
||||
getVisibleText: function(user) {
|
||||
return user.username;
|
||||
|
|
@ -2226,7 +2226,7 @@ Listview.templates = {
|
|||
type: 'text',
|
||||
compute: function(user, td) {
|
||||
$(td).append($WH.number_format(user.reputation));
|
||||
return;
|
||||
|
||||
},
|
||||
sortFunc: function(a, b) {
|
||||
if (b.reputation == a.reputation)
|
||||
|
|
@ -2251,7 +2251,7 @@ Listview.templates = {
|
|||
sp.html(buf);
|
||||
$(td).append(sp);
|
||||
|
||||
return;
|
||||
|
||||
},
|
||||
sortFunc: function(a, b) {
|
||||
var sumA = (a.gold * 1000 * 1000) + (a.silver * 1000) + a.copper;
|
||||
|
|
@ -2267,7 +2267,7 @@ Listview.templates = {
|
|||
type: 'text',
|
||||
compute: function(user, td) {
|
||||
$(td).append($WH.number_format(user.comments));
|
||||
return;
|
||||
|
||||
},
|
||||
sortFunc: function(a, b) {
|
||||
if (a.comments == b.comments)
|
||||
|
|
@ -2281,7 +2281,7 @@ Listview.templates = {
|
|||
type: 'text',
|
||||
compute: function(user, td) {
|
||||
$(td).append($WH.number_format(user.posts));
|
||||
return;
|
||||
|
||||
},
|
||||
sortFunc: function(a, b) {
|
||||
if (a.posts == b.posts)
|
||||
|
|
@ -2295,7 +2295,7 @@ Listview.templates = {
|
|||
type: 'text',
|
||||
compute: function(user, td) {
|
||||
$(td).append($WH.number_format(user.screenshots));
|
||||
return;
|
||||
|
||||
},
|
||||
sortFunc: function(a, b) {
|
||||
if (a.screenshots == b.screenshots)
|
||||
|
|
@ -2309,7 +2309,7 @@ Listview.templates = {
|
|||
type: 'text',
|
||||
compute: function(user, td) {
|
||||
$(td).append($WH.number_format(user.reports));
|
||||
return;
|
||||
|
||||
},
|
||||
sortFunc: function(a, b) {
|
||||
if (a.reports == b.reports)
|
||||
|
|
@ -2323,7 +2323,7 @@ Listview.templates = {
|
|||
type: 'text',
|
||||
compute: function(user, td) {
|
||||
$(td).append($WH.number_format(user.votes));
|
||||
return;
|
||||
|
||||
},
|
||||
sortFunc: function(a, b) {
|
||||
if (a.votes == b.votes)
|
||||
|
|
@ -2337,7 +2337,7 @@ Listview.templates = {
|
|||
type: 'text',
|
||||
compute: function(user, c) {
|
||||
$(c).append($WH.number_format(user.uploads));
|
||||
return;
|
||||
|
||||
},
|
||||
sortFunc: function(a, c) {
|
||||
if (a.uploads == c.uploads)
|
||||
|
|
@ -2396,7 +2396,7 @@ Listview.templates = {
|
|||
else {
|
||||
$(td).append(l_reputation_names[rep.action]);
|
||||
}
|
||||
return;
|
||||
|
||||
},
|
||||
getVisibleText: function(rep) {
|
||||
return l_reputation_names[rep.action];
|
||||
|
|
@ -2418,7 +2418,7 @@ Listview.templates = {
|
|||
}
|
||||
|
||||
$(td).append(span);
|
||||
return;
|
||||
|
||||
},
|
||||
getVisibleText: function(rep) {
|
||||
return rep.amount;
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ function Mapper(opt, noScroll)
|
|||
this.setZones(opt.zoneparent, opt.zones);
|
||||
|
||||
this.updateMap(noScroll);
|
||||
};
|
||||
}
|
||||
|
||||
Mapper.sizes = [
|
||||
[ 488, 325, 'normal'],
|
||||
|
|
@ -1080,7 +1080,7 @@ Mapper.prototype = {
|
|||
|
||||
this.onPinUpdate && this.onPinUpdate(this);
|
||||
|
||||
return;
|
||||
|
||||
},
|
||||
|
||||
pinOver: function()
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ function g_GetCommentRoleLabel(roles, title)
|
|||
return LANG.premiumuser;
|
||||
|
||||
return null;
|
||||
};
|
||||
}
|
||||
|
||||
function g_formatDate(sp, elapsed, theDate, time, alone)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2289,7 +2289,7 @@ function TalentCalc() {
|
|||
_setPoints(basePoints, -1);
|
||||
_setGlyphSlots(lvl);
|
||||
_refreshGlyphs();
|
||||
};
|
||||
}
|
||||
|
||||
function _setLock(locked) {
|
||||
if (_locked != locked) {
|
||||
|
|
|
|||
|
|
@ -100,4 +100,4 @@ function updateSnippet() {
|
|||
$("#snippet").val(a)
|
||||
}
|
||||
})
|
||||
};
|
||||
}
|
||||
|
|
@ -16,4 +16,4 @@ function ar_ValidateUrl(a) {
|
|||
else {
|
||||
return "You used invalid characters in your URL.\n\nYou can only use the following:\n a to z\n 0 to 9\n = _ & . / -"
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,4 +81,4 @@ function updatePlaceholder() {
|
|||
else
|
||||
$("#description").text(data);
|
||||
})
|
||||
};
|
||||
}
|
||||
|
|
@ -553,7 +553,7 @@ $WH.eO = function(z) {
|
|||
|
||||
// Duplicate object
|
||||
$WH.dO = function(s) {
|
||||
function f(){};
|
||||
function f(){}
|
||||
f.prototype = s;
|
||||
return new f;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1367,7 +1367,7 @@ qq.extend(qq.UploadHandlerXhr.prototype, {
|
|||
}
|
||||
for (key in this._options.customHeaders){
|
||||
xhr.setRequestHeader(key, this._options.customHeaders[key]);
|
||||
};
|
||||
}
|
||||
xhr.send(file);
|
||||
},
|
||||
_onComplete: function(id, xhr){
|
||||
|
|
|
|||
|
|
@ -88,4 +88,4 @@ function ma_UpdateLink(_) {
|
|||
}
|
||||
|
||||
$WH.ge('link-to-this-map').href = b;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,4 +119,4 @@ function pc_readPound() {
|
|||
pc_object.setWhBuild(pc_build);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -588,7 +588,7 @@ function pr_addEquipButton(id, itemId)
|
|||
|
||||
$('#' + id).append(button);
|
||||
|
||||
return;
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -143,4 +143,4 @@ function tc_readPound() {
|
|||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ Listview.funcBox.beforeUserComments = function()
|
|||
}).bind(this);
|
||||
$WH.ae(d, i);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
this.customFilter = function (comment, i)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -801,7 +801,7 @@ function () {
|
|||
if (!resizing) {
|
||||
// aowow - /uploads/videos/ not seen on server
|
||||
// aOriginal.href = g_staticUrl + '/uploads/videos/' + (video.pending ? 'pending' : 'normal') + '/' + video.id + '.jpg';
|
||||
aOriginal.href = $WH.sprintf(vi_siteurls[video.videoType], video.videoId);;
|
||||
aOriginal.href = $WH.sprintf(vi_siteurls[video.videoType], video.videoId);
|
||||
var hasFrom = video.date && video.user;
|
||||
if (hasFrom) {
|
||||
var
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue