Skip to content

Node.js based forum software built for the modern web

Add missing new lines at end of files.

Micheil Smith3e82cab39801
diff --git a/loader.js b/loader.js
index e0bfac6258..481cd4fd04 100644
--- a/loader.js
+++ b/loader.js
@@ -83,4 +83,4 @@ if (nconf.get('d')) {
});
} else {
start();
-}
\ No newline at end of file
+}
diff --git a/minifier.js b/minifier.js
index cddcd92b51..b4354db0ba 100644
--- a/minifier.js
+++ b/minifier.js
@@ -55,4 +55,4 @@ process.on('message', function(payload) {
Minifier.js.concatenate(payload.scripts, executeCallback);
break;
}
-})
\ No newline at end of file
+})
diff --git a/public/src/forum/accountedit.js b/public/src/forum/accountedit.js
index 701c97ff74..c5580a3147 100644
--- a/public/src/forum/accountedit.js
+++ b/public/src/forum/accountedit.js
@@ -264,4 +264,4 @@ define(['forum/accountheader', 'uploader'], function(header, uploader) {
}
return AccountEdit;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/accountheader.js b/public/src/forum/accountheader.js
index 4ff2f1be63..c2d33546eb 100644
--- a/public/src/forum/accountheader.js
+++ b/public/src/forum/accountheader.js
@@ -38,4 +38,4 @@ define(function() {
}
return AccountHeader;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/accountposts.js b/public/src/forum/accountposts.js
index c1e304c3b7..737cb41916 100644
--- a/public/src/forum/accountposts.js
+++ b/public/src/forum/accountposts.js
@@ -54,4 +54,4 @@ define(['forum/accountheader'], function(header) {
}
return AccountPosts;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/accounttopics.js b/public/src/forum/accounttopics.js
index ed94057c4d..ae91e98df5 100644
--- a/public/src/forum/accounttopics.js
+++ b/public/src/forum/accounttopics.js
@@ -50,4 +50,4 @@ define(['forum/accountheader'], function(header) {
}
return AccountTopics;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/admin/languages.js b/public/src/forum/admin/languages.js
index b5f1a1523d..a01b0b90af 100644
--- a/public/src/forum/admin/languages.js
+++ b/public/src/forum/admin/languages.js
@@ -5,4 +5,4 @@ define(['forum/admin/settings'], function(Settings) {
$(function() {
Settings.prepare();
});
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/admin/plugins.js b/public/src/forum/admin/plugins.js
index 1de7c4637b..a494f3053d 100644
--- a/public/src/forum/admin/plugins.js
+++ b/public/src/forum/admin/plugins.js
@@ -31,4 +31,4 @@ define(function() {
};
return Plugins;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/admin/settings.js b/public/src/forum/admin/settings.js
index b27b11c72e..cddd48428b 100644
--- a/public/src/forum/admin/settings.js
+++ b/public/src/forum/admin/settings.js
@@ -145,4 +145,4 @@ define(['uploader', 'sounds'], function(uploader, sounds) {
}
return Settings;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/admin/sounds.js b/public/src/forum/admin/sounds.js
index b58acc6ac2..5dc7047b54 100644
--- a/public/src/forum/admin/sounds.js
+++ b/public/src/forum/admin/sounds.js
@@ -28,4 +28,4 @@ define(['sounds', 'settings'], function(Sounds, Settings) {
};
return SoundsAdmin;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/admin/themes.js b/public/src/forum/admin/themes.js
index acfb6f3e6e..4dd38c1d92 100644
--- a/public/src/forum/admin/themes.js
+++ b/public/src/forum/admin/themes.js
@@ -318,4 +318,4 @@ define(['forum/admin/settings'], function(Settings) {
};
return Themes;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/admin/users.js b/public/src/forum/admin/users.js
index 229c45cfb1..e52a8d78f9 100644
--- a/public/src/forum/admin/users.js
+++ b/public/src/forum/admin/users.js
@@ -288,4 +288,4 @@ define(function() {
};
return Users;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/favourites.js b/public/src/forum/favourites.js
index f9944e5e29..c3810a316c 100644
--- a/public/src/forum/favourites.js
+++ b/public/src/forum/favourites.js
@@ -50,4 +50,4 @@ define(['forum/accountheader'], function(header) {
}
return Favourites;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/followers.js b/public/src/forum/followers.js
index 15263c142e..40a2550ba6 100644
--- a/public/src/forum/followers.js
+++ b/public/src/forum/followers.js
@@ -17,4 +17,4 @@ define(['forum/accountheader'], function(header) {
};
return Followers;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/following.js b/public/src/forum/following.js
index 80571cd19d..4dd6636692 100644
--- a/public/src/forum/following.js
+++ b/public/src/forum/following.js
@@ -14,4 +14,4 @@ define(['forum/accountheader'], function(header) {
};
return Following;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/footer.js b/public/src/forum/footer.js
index f93277a4b5..585b9722c9 100644
--- a/public/src/forum/footer.js
+++ b/public/src/forum/footer.js
@@ -23,4 +23,4 @@ define(['notifications', 'chat'], function(Notifications, Chat) {
socket.on('event:unread.updateCount', updateUnreadCount);
socket.emit('user.getUnreadCount', updateUnreadCount);
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/notifications.js b/public/src/forum/notifications.js
index 38bb3c80a2..55b7268a36 100644
--- a/public/src/forum/notifications.js
+++ b/public/src/forum/notifications.js
@@ -13,4 +13,4 @@ define(function() {
}
return Notifications;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/pagination.js b/public/src/forum/pagination.js
index 9a0ea4cf73..d34bf2cfd7 100644
--- a/public/src/forum/pagination.js
+++ b/public/src/forum/pagination.js
@@ -105,4 +105,4 @@ define(function() {
}
return pagination;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/popular.js b/public/src/forum/popular.js
index 5b99451cf3..e8b35729a4 100644
--- a/public/src/forum/popular.js
+++ b/public/src/forum/popular.js
@@ -47,4 +47,4 @@ define(['forum/recent'], function(recent) {
};
return Popular;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/register.js b/public/src/forum/register.js
index 871c199239..b389b5adc4 100644
--- a/public/src/forum/register.js
+++ b/public/src/forum/register.js
@@ -185,4 +185,4 @@ define(function() {
};
return Register;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/reset.js b/public/src/forum/reset.js
index 95ee52a939..a85c02cf46 100644
--- a/public/src/forum/reset.js
+++ b/public/src/forum/reset.js
@@ -28,4 +28,4 @@ define(function() {
};
return ResetPassword;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/reset_code.js b/public/src/forum/reset_code.js
index 0215669c39..b7a0d9caca 100644
--- a/public/src/forum/reset_code.js
+++ b/public/src/forum/reset_code.js
@@ -52,4 +52,4 @@ define(function() {
};
return ResetCode;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/search.js b/public/src/forum/search.js
index e6cdcca11e..7543363e3b 100644
--- a/public/src/forum/search.js
+++ b/public/src/forum/search.js
@@ -24,4 +24,4 @@ define(function() {
};
return Search;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js
index ab9eb9d7ad..076ec92d6b 100644
--- a/public/src/forum/topic.js
+++ b/public/src/forum/topic.js
@@ -771,4 +771,4 @@ define(['forum/pagination', 'forum/topic/threadTools', 'forum/topic/postTools',
}
return Topic;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/topic/fork.js b/public/src/forum/topic/fork.js
index 7bced35639..474b83fffa 100644
--- a/public/src/forum/topic/fork.js
+++ b/public/src/forum/topic/fork.js
@@ -112,4 +112,4 @@ define(function() {
}
return Fork;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/topic/move.js b/public/src/forum/topic/move.js
index 2f92d44ad9..1fc81305b4 100644
--- a/public/src/forum/topic/move.js
+++ b/public/src/forum/topic/move.js
@@ -97,4 +97,4 @@ define(function() {
};
return Move;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/topic/postTools.js b/public/src/forum/topic/postTools.js
index bbe9a109ca..483f885626 100644
--- a/public/src/forum/topic/postTools.js
+++ b/public/src/forum/topic/postTools.js
@@ -248,4 +248,4 @@ define(['composer', 'share'], function(composer, share) {
}
return PostTools;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/topic/threadTools.js b/public/src/forum/topic/threadTools.js
index 0836b8d3b5..186bf682c6 100644
--- a/public/src/forum/topic/threadTools.js
+++ b/public/src/forum/topic/threadTools.js
@@ -94,4 +94,4 @@ define(['forum/topic/fork', 'forum/topic/move'], function(fork, move) {
return ThreadTools;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/unread.js b/public/src/forum/unread.js
index e944ffde16..1165f7f0e7 100644
--- a/public/src/forum/unread.js
+++ b/public/src/forum/unread.js
@@ -163,4 +163,4 @@ define(['forum/recent'], function(recent) {
}
return Unread;
-});
\ No newline at end of file
+});
diff --git a/public/src/forum/users.js b/public/src/forum/users.js
index 2b822f1c18..d4192d30c1 100644
--- a/public/src/forum/users.js
+++ b/public/src/forum/users.js
@@ -169,4 +169,4 @@ define(function() {
};
return Users;
-});
\ No newline at end of file
+});
diff --git a/public/src/helpers.js b/public/src/helpers.js
index e273671782..407ee3bf17 100644
--- a/public/src/helpers.js
+++ b/public/src/helpers.js
@@ -36,4 +36,4 @@
module: {
exports: {}
}
-} : module);
\ No newline at end of file
+} : module);
diff --git a/public/src/modules/alerts.js b/public/src/modules/alerts.js
index 9efa3298a0..e2fcd216cc 100644
--- a/public/src/modules/alerts.js
+++ b/public/src/modules/alerts.js
@@ -91,4 +91,4 @@ define(function() {
};
return module;
-});
\ No newline at end of file
+});
diff --git a/public/src/modules/chat.js b/public/src/modules/chat.js
index ab44e60dfc..ef7fb975b5 100644
--- a/public/src/modules/chat.js
+++ b/public/src/modules/chat.js
@@ -275,4 +275,4 @@ define(['taskbar', 'string', 'sounds'], function(taskbar, S, sounds) {
};
return module;
-});
\ No newline at end of file
+});
diff --git a/public/src/modules/composer.js b/public/src/modules/composer.js
index 2402cf0a3e..b88b4fe469 100644
--- a/public/src/modules/composer.js
+++ b/public/src/modules/composer.js
@@ -967,4 +967,4 @@ define(['taskbar'], function(taskbar) {
load: composer.load,
minimize: composer.minimize
};
-});
\ No newline at end of file
+});
diff --git a/public/src/modules/navigator.js b/public/src/modules/navigator.js
index c6f7aab854..648b3438b0 100644
--- a/public/src/modules/navigator.js
+++ b/public/src/modules/navigator.js
@@ -101,4 +101,4 @@ define(function() {
}
return navigator;
-});
\ No newline at end of file
+});
diff --git a/public/src/modules/notifications.js b/public/src/modules/notifications.js
index fcb6143f14..4e6b701f53 100644
--- a/public/src/modules/notifications.js
+++ b/public/src/modules/notifications.js
@@ -117,4 +117,4 @@ define(['sounds'], function(sound) {
};
return Notifications;
-});
\ No newline at end of file
+});
diff --git a/public/src/modules/settings.js b/public/src/modules/settings.js
index 129f4882d1..272060d537 100644
--- a/public/src/modules/settings.js
+++ b/public/src/modules/settings.js
@@ -65,4 +65,4 @@ define(function() {
};
return Settings;
-});
\ No newline at end of file
+});
diff --git a/public/src/modules/share.js b/public/src/modules/share.js
index bf32d8e4f8..0556367ff1 100644
--- a/public/src/modules/share.js
+++ b/public/src/modules/share.js
@@ -53,4 +53,4 @@ define(function() {
}
return module;
-});
\ No newline at end of file
+});
diff --git a/public/src/modules/sounds.js b/public/src/modules/sounds.js
index ada1a164fd..100b735f46 100644
--- a/public/src/modules/sounds.js
+++ b/public/src/modules/sounds.js
@@ -103,4 +103,4 @@ define(['buzz'], function(buzz) {
Sounds.init();
return Sounds;
-});
\ No newline at end of file
+});
diff --git a/public/src/modules/string.js b/public/src/modules/string.js
index d56334ffd7..83e283e934 100644
--- a/public/src/modules/string.js
+++ b/public/src/modules/string.js
@@ -1,3 +1,3 @@
/*
string.js - Copyright (C) 2012-2013, JP Richardson <[email protected]>
-*/!function(){"use strict";function n(e,t){t!==null&&t!==undefined?typeof t=="string"?e.s=t:e.s=t.toString():e.s=t,e.orig=t,t!==null&&t!==undefined?e.__defineGetter__?e.__defineGetter__("length",function(){return e.s.length}):e.length=t.length:e.length=-1}function r(e){n(this,e)}function u(){for(var e in s)(function(e){var t=s[e];i.hasOwnProperty(e)||(o.push(e),i[e]=function(){return String.prototype.s=this,t.apply(this,arguments)})})(e)}function a(){for(var e=0;e<o.length;++e)delete String.prototype[o[e]];o.length=0}function c(){var e=h(),t={};for(var n=0;n<e.length;++n){var r=e[n],s=i[r];try{var o=typeof s.apply("teststring",[]);t[r]=o}catch(u){}}return t}function h(){var e=[];if(Object.getOwnPropertyNames)return e=Object.getOwnPropertyNames(i),e.splice(e.indexOf("valueOf"),1),e.splice(e.indexOf("toString"),1),e;var t={},n=[];for(var r in String.prototype)t[r]=r;for(var r in Object.prototype)delete t[r];for(var r in t)e.push(r);return e}function p(e){return new r(e)}function d(e,t){var n=[],r;for(r=0;r<e.length;r++)n.push(e[r]),t&&t.call(e,e[r],r);return n}var e="1.7.0",t={},i=String.prototype,s=r.prototype={between:function(e,t){var n=this.s,r=n.indexOf(e),i=n.indexOf(t),s=r+e.length;return new this.constructor(i>r?n.slice(s,i):"")},camelize:function(){var e=this.trim().s.replace(/(\-|_|\s)+(.)?/g,function(e,t,n){return n?n.toUpperCase():""});return new this.constructor(e)},capitalize:function(){return new this.constructor(this.s.substr(0,1).toUpperCase()+this.s.substring(1).toLowerCase())},charAt:function(e){return this.s.charAt(e)},chompLeft:function(e){var t=this.s;return t.indexOf(e)===0?(t=t.slice(e.length),new this.constructor(t)):this},chompRight:function(e){if(this.endsWith(e)){var t=this.s;return t=t.slice(0,t.length-e.length),new this.constructor(t)}return this},collapseWhitespace:function(){var e=this.s.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"");return new this.constructor(e)},contains:function(e){return this.s.indexOf(e)>=0},count:function(e){var t=0,n=this.s.indexOf(e);while(n>=0)t+=1,n=this.s.indexOf(e,n+1);return t},dasherize:function(){var e=this.trim().s.replace(/[_\s]+/g,"-").replace(/([A-Z])/g,"-$1").replace(/-+/g,"-").toLowerCase();return new this.constructor(e)},decodeHtmlEntities:function(){var e=this.s;return e=e.replace(/&#(\d+);?/g,function(e,t){return String.fromCharCode(t)}).replace(/&#[xX]([A-Fa-f0-9]+);?/g,function(e,t){return String.fromCharCode(parseInt(t,16))}).replace(/&([^;\W]+;?)/g,function(e,n){var r=n.replace(/;$/,""),i=t[n]||n.match(/;$/)&&t[r];return typeof i=="number"?String.fromCharCode(i):typeof i=="string"?i:e}),new this.constructor(e)},endsWith:function(e){var t=this.s.length-e.length;return t>=0&&this.s.indexOf(e,t)===t},escapeHTML:function(){return new this.constructor(this.s.replace(/[&<>"']/g,function(e){return"&"+m[e]+";"}))},ensureLeft:function(e){var t=this.s;return t.indexOf(e)===0?this:new this.constructor(e+t)},ensureRight:function(e){var t=this.s;return this.endsWith(e)?this:new this.constructor(t+e)},humanize:function(){if(this.s===null||this.s===undefined)return new this.constructor("");var e=this.underscore().replace(/_id$/,"").replace(/_/g," ").trim().capitalize();return new this.constructor(e)},isAlpha:function(){return!/[^a-z\xC0-\xFF]/.test(this.s.toLowerCase())},isAlphaNumeric:function(){return!/[^0-9a-z\xC0-\xFF]/.test(this.s.toLowerCase())},isEmpty:function(){return this.s===null||this.s===undefined?!0:/^[\s\xa0]*$/.test(this.s)},isLower:function(){return this.isAlpha()&&this.s.toLowerCase()===this.s},isNumeric:function(){return!/[^0-9]/.test(this.s)},isUpper:function(){return this.isAlpha()&&this.s.toUpperCase()===this.s},left:function(e){if(e>=0){var t=this.s.substr(0,e);return new this.constructor(t)}return this.right(-e)},lines:function(){return this.replaceAll("\r\n","\n").s.split("\n")},pad:function(e,t){t==null&&(t=" ");if(this.s.length>=e)return new this.constructor(this.s);e-=this.s.length;var n=Array(Math.ceil(e/2)+1).join(t),r=Array(Math.floor(e/2)+1).join(t);return new this.constructor(n+this.s+r)},padLeft:function(e,t){return t==null&&(t=" "),this.s.length>=e?new this.constructor(this.s):new this.constructor(Array(e-this.s.length+1).join(t)+this.s)},padRight:function(e,t){return t==null&&(t=" "),this.s.length>=e?new this.constructor(this.s):new this.constructor(this.s+Array(e-this.s.length+1).join(t))},parseCSV:function(e,t,n,r){e=e||",",n=n||"\\",typeof t=="undefined"&&(t='"');var i=0,s=[],o=[],u=this.s.length,a=!1,f=this,l=function(e){return f.s.charAt(e)};if(typeof r!="undefined")var c=[];t||(a=!0);while(i<u){var h=l(i);switch(h){case n:if(a&&(n!==t||l(i+1)===t)){i+=1,s.push(l(i));break}if(n!==t)break;case t:a=!a;break;case e:a&&t?s.push(h):(o.push(s.join("")),s.length=0);break;case r:a?s.push(h):c&&(o.push(s.join("")),c.push(o),o=[],s.length=0);break;default:a&&s.push(h)}i+=1}return o.push(s.join("")),c?(c.push(o),c):o},replaceAll:function(e,t){var n=this.s.split(e).join(t);return new this.constructor(n)},right:function(e){if(e>=0){var t=this.s.substr(this.s.length-e,e);return new this.constructor(t)}return this.left(-e)},setValue:function(e){return n(this,e),this},slugify:function(){var e=(new r(this.s.replace(/[^\w\s-]/g,"").toLowerCase())).dasherize().s;return e.charAt(0)==="-"&&(e=e.substr(1)),new this.constructor(e)},startsWith:function(e){return this.s.lastIndexOf(e,0)===0},stripPunctuation:function(){return new this.constructor(this.s.replace(/[^\w\s]|_/g,"").replace(/\s+/g," "))},stripTags:function(){var e=this.s,t=arguments.length>0?arguments:[""];return d(t,function(t){e=e.replace(RegExp("</?"+t+"[^<>]*>","gi"),"")}),new this.constructor(e)},template:function(e,t,n){var r=this.s,t=t||p.TMPL_OPEN,n=n||p.TMPL_CLOSE,i=t.replace(/[-[\]()*\s]/g,"\\$&").replace(/\$/g,"\\$"),s=n.replace(/[-[\]()*\s]/g,"\\$&").replace(/\$/g,"\\$"),o=new RegExp(i+"(.+?)"+s,"g"),u=r.match(o)||[];return u.forEach(function(i){var s=i.substring(t.length,i.length-n.length);typeof e[s]!="undefined"&&(r=r.replace(i,e[s]))}),new this.constructor(r)},times:function(e){return new this.constructor((new Array(e+1)).join(this.s))},toBoolean:function(){if(typeof this.orig=="string"){var e=this.s.toLowerCase();return e==="true"||e==="yes"||e==="on"}return this.orig===!0||this.orig===1},toFloat:function(e){var t=parseFloat(this.s);return e?parseFloat(t.toFixed(e)):t},toInt:function(){return/^\s*-?0x/i.test(this.s)?parseInt(this.s,16):parseInt(this.s,10)},trim:function(){var e;return typeof i.trim=="undefined"?e=this.s.replace(/(^\s*|\s*$)/g,""):e=this.s.trim(),new this.constructor(e)},trimLeft:function(){var e;return i.trimLeft?e=this.s.trimLeft():e=this.s.replace(/(^\s*)/g,""),new this.constructor(e)},trimRight:function(){var e;return i.trimRight?e=this.s.trimRight():e=this.s.replace(/\s+$/,""),new this.constructor(e)},truncate:function(e,t){var n=this.s;e=~~e,t=t||"...";if(n.length<=e)return new this.constructor(n);var i=function(e){return e.toUpperCase()!==e.toLowerCase()?"A":" "},s=n.slice(0,e+1).replace(/.(?=\W*\w*$)/g,i);return s.slice(s.length-2).match(/\w\w/)?s=s.replace(/\s*\S+$/,""):s=(new r(s.slice(0,s.length-1))).trimRight().s,(s+t).length>n.length?new r(n):new r(n.slice(0,s.length)+t)},toCSV:function(){function u(e){return e!==null&&e!==""}var e=",",t='"',n="\\",i=!0,s=!1,o=[];typeof arguments[0]=="object"?(e=arguments[0].delimiter||e,e=arguments[0].separator||e,t=arguments[0].qualifier||t,i=!!arguments[0].encloseNumbers,n=arguments[0].escape||n,s=!!arguments[0].keys):typeof arguments[0]=="string"&&(e=arguments[0]),typeof arguments[1]=="string"&&(t=arguments[1]),arguments[1]===null&&(t=null);if(this.orig instanceof Array)o=this.orig;else for(var a in this.orig)this.orig.hasOwnProperty(a)&&(s?o.push(a):o.push(this.orig[a]));var f=n+t,l=[];for(var c=0;c<o.length;++c){var h=u(t);typeof o[c]=="number"&&(h&=i),h&&l.push(t);if(o[c]!==null&&o[c]!==undefined){var p=(new r(o[c])).replaceAll(t,f).s;l.push(p)}else l.push("");h&&l.push(t),e&&l.push(e)}return l.length=l.length-1,new this.constructor(l.join(""))},toString:function(){return this.s},underscore:function(){var e=this.trim().s.replace(/([a-z\d])([A-Z]+)/g,"$1_$2").replace(/[-\s]+/g,"_").toLowerCase();return(new r(this.s.charAt(0))).isUpper()&&(e="_"+e),new this.constructor(e)},unescapeHTML:function(){return new this.constructor(this.s.replace(/\&([^;]+);/g,function(e,t){var n;return t in v?v[t]:(n=t.match(/^#x([\da-fA-F]+)$/))?String.fromCharCode(parseInt(n[1],16)):(n=t.match(/^#(\d+)$/))?String.fromCharCode(~~n[1]):e}))},valueOf:function(){return this.s.valueOf()}},o=[],f=c();for(var l in f)(function(e){var t=i[e];typeof t=="function"&&(s[e]||(f[e]==="string"?s[e]=function(){return new this.constructor(t.apply(this,arguments))}:s[e]=t))})(l);s.repeat=s.times,s.include=s.contains,s.toInteger=s.toInt,s.toBool=s.toBoolean,s.decodeHTMLEntities=s.decodeHtmlEntities,s.constructor=r,p.extendPrototype=u,p.restorePrototype=a,p.VERSION=e,p.TMPL_OPEN="{{",p.TMPL_CLOSE="}}",p.ENTITIES=t,typeof module!="undefined"&&typeof module.exports!="undefined"?module.exports=p:typeof define=="function"&&define.amd?define([],function(){return p}):window.S=p;var v={lt:"<",gt:">",quot:'"',apos:"'",amp:"&"},m={};for(var g in v)m[v[g]]=g;t={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,"OElig;":338,"oelig;":339,"Scaron;":352,"scaron;":353,"Yuml;":376,"fnof;":402,"circ;":710,"tilde;":732,"Alpha;":913,"Beta;":914,"Gamma;":915,"Delta;":916,"Epsilon;":917,"Zeta;":918,"Eta;":919,"Theta;":920,"Iota;":921,"Kappa;":922,"Lambda;":923,"Mu;":924,"Nu;":925,"Xi;":926,"Omicron;":927,"Pi;":928,"Rho;":929,"Sigma;":931,"Tau;":932,"Upsilon;":933,"Phi;":934,"Chi;":935,"Psi;":936,"Omega;":937,"alpha;":945,"beta;":946,"gamma;":947,"delta;":948,"epsilon;":949,"zeta;":950,"eta;":951,"theta;":952,"iota;":953,"kappa;":954,"lambda;":955,"mu;":956,"nu;":957,"xi;":958,"omicron;":959,"pi;":960,"rho;":961,"sigmaf;":962,"sigma;":963,"tau;":964,"upsilon;":965,"phi;":966,"chi;":967,"psi;":968,"omega;":969,"thetasym;":977,"upsih;":978,"piv;":982,"ensp;":8194,"emsp;":8195,"thinsp;":8201,"zwnj;":8204,"zwj;":8205,"lrm;":8206,"rlm;":8207,"ndash;":8211,"mdash;":8212,"lsquo;":8216,"rsquo;":8217,"sbquo;":8218,"ldquo;":8220,"rdquo;":8221,"bdquo;":8222,"dagger;":8224,"Dagger;":8225,"bull;":8226,"hellip;":8230,"permil;":8240,"prime;":8242,"Prime;":8243,"lsaquo;":8249,"rsaquo;":8250,"oline;":8254,"frasl;":8260,"euro;":8364,"image;":8465,"weierp;":8472,"real;":8476,"trade;":8482,"alefsym;":8501,"larr;":8592,"uarr;":8593,"rarr;":8594,"darr;":8595,"harr;":8596,"crarr;":8629,"lArr;":8656,"uArr;":8657,"rArr;":8658,"dArr;":8659,"hArr;":8660,"forall;":8704,"part;":8706,"exist;":8707,"empty;":8709,"nabla;":8711,"isin;":8712,"notin;":8713,"ni;":8715,"prod;":8719,"sum;":8721,"minus;":8722,"lowast;":8727,"radic;":8730,"prop;":8733,"infin;":8734,"ang;":8736,"and;":8743,"or;":8744,"cap;":8745,"cup;":8746,"int;":8747,"there4;":8756,"sim;":8764,"cong;":8773,"asymp;":8776,"ne;":8800,"equiv;":8801,"le;":8804,"ge;":8805,"sub;":8834,"sup;":8835,"nsub;":8836,"sube;":8838,"supe;":8839,"oplus;":8853,"otimes;":8855,"perp;":8869,"sdot;":8901,"lceil;":8968,"rceil;":8969,"lfloor;":8970,"rfloor;":8971,"lang;":9001,"rang;":9002,"loz;":9674,"spades;":9824,"clubs;":9827,"hearts;":9829,"diams;":9830}}.call(this);
\ No newline at end of file
+*/!function(){"use strict";function n(e,t){t!==null&&t!==undefined?typeof t=="string"?e.s=t:e.s=t.toString():e.s=t,e.orig=t,t!==null&&t!==undefined?e.__defineGetter__?e.__defineGetter__("length",function(){return e.s.length}):e.length=t.length:e.length=-1}function r(e){n(this,e)}function u(){for(var e in s)(function(e){var t=s[e];i.hasOwnProperty(e)||(o.push(e),i[e]=function(){return String.prototype.s=this,t.apply(this,arguments)})})(e)}function a(){for(var e=0;e<o.length;++e)delete String.prototype[o[e]];o.length=0}function c(){var e=h(),t={};for(var n=0;n<e.length;++n){var r=e[n],s=i[r];try{var o=typeof s.apply("teststring",[]);t[r]=o}catch(u){}}return t}function h(){var e=[];if(Object.getOwnPropertyNames)return e=Object.getOwnPropertyNames(i),e.splice(e.indexOf("valueOf"),1),e.splice(e.indexOf("toString"),1),e;var t={},n=[];for(var r in String.prototype)t[r]=r;for(var r in Object.prototype)delete t[r];for(var r in t)e.push(r);return e}function p(e){return new r(e)}function d(e,t){var n=[],r;for(r=0;r<e.length;r++)n.push(e[r]),t&&t.call(e,e[r],r);return n}var e="1.7.0",t={},i=String.prototype,s=r.prototype={between:function(e,t){var n=this.s,r=n.indexOf(e),i=n.indexOf(t),s=r+e.length;return new this.constructor(i>r?n.slice(s,i):"")},camelize:function(){var e=this.trim().s.replace(/(\-|_|\s)+(.)?/g,function(e,t,n){return n?n.toUpperCase():""});return new this.constructor(e)},capitalize:function(){return new this.constructor(this.s.substr(0,1).toUpperCase()+this.s.substring(1).toLowerCase())},charAt:function(e){return this.s.charAt(e)},chompLeft:function(e){var t=this.s;return t.indexOf(e)===0?(t=t.slice(e.length),new this.constructor(t)):this},chompRight:function(e){if(this.endsWith(e)){var t=this.s;return t=t.slice(0,t.length-e.length),new this.constructor(t)}return this},collapseWhitespace:function(){var e=this.s.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"");return new this.constructor(e)},contains:function(e){return this.s.indexOf(e)>=0},count:function(e){var t=0,n=this.s.indexOf(e);while(n>=0)t+=1,n=this.s.indexOf(e,n+1);return t},dasherize:function(){var e=this.trim().s.replace(/[_\s]+/g,"-").replace(/([A-Z])/g,"-$1").replace(/-+/g,"-").toLowerCase();return new this.constructor(e)},decodeHtmlEntities:function(){var e=this.s;return e=e.replace(/&#(\d+);?/g,function(e,t){return String.fromCharCode(t)}).replace(/&#[xX]([A-Fa-f0-9]+);?/g,function(e,t){return String.fromCharCode(parseInt(t,16))}).replace(/&([^;\W]+;?)/g,function(e,n){var r=n.replace(/;$/,""),i=t[n]||n.match(/;$/)&&t[r];return typeof i=="number"?String.fromCharCode(i):typeof i=="string"?i:e}),new this.constructor(e)},endsWith:function(e){var t=this.s.length-e.length;return t>=0&&this.s.indexOf(e,t)===t},escapeHTML:function(){return new this.constructor(this.s.replace(/[&<>"']/g,function(e){return"&"+m[e]+";"}))},ensureLeft:function(e){var t=this.s;return t.indexOf(e)===0?this:new this.constructor(e+t)},ensureRight:function(e){var t=this.s;return this.endsWith(e)?this:new this.constructor(t+e)},humanize:function(){if(this.s===null||this.s===undefined)return new this.constructor("");var e=this.underscore().replace(/_id$/,"").replace(/_/g," ").trim().capitalize();return new this.constructor(e)},isAlpha:function(){return!/[^a-z\xC0-\xFF]/.test(this.s.toLowerCase())},isAlphaNumeric:function(){return!/[^0-9a-z\xC0-\xFF]/.test(this.s.toLowerCase())},isEmpty:function(){return this.s===null||this.s===undefined?!0:/^[\s\xa0]*$/.test(this.s)},isLower:function(){return this.isAlpha()&&this.s.toLowerCase()===this.s},isNumeric:function(){return!/[^0-9]/.test(this.s)},isUpper:function(){return this.isAlpha()&&this.s.toUpperCase()===this.s},left:function(e){if(e>=0){var t=this.s.substr(0,e);return new this.constructor(t)}return this.right(-e)},lines:function(){return this.replaceAll("\r\n","\n").s.split("\n")},pad:function(e,t){t==null&&(t=" ");if(this.s.length>=e)return new this.constructor(this.s);e-=this.s.length;var n=Array(Math.ceil(e/2)+1).join(t),r=Array(Math.floor(e/2)+1).join(t);return new this.constructor(n+this.s+r)},padLeft:function(e,t){return t==null&&(t=" "),this.s.length>=e?new this.constructor(this.s):new this.constructor(Array(e-this.s.length+1).join(t)+this.s)},padRight:function(e,t){return t==null&&(t=" "),this.s.length>=e?new this.constructor(this.s):new this.constructor(this.s+Array(e-this.s.length+1).join(t))},parseCSV:function(e,t,n,r){e=e||",",n=n||"\\",typeof t=="undefined"&&(t='"');var i=0,s=[],o=[],u=this.s.length,a=!1,f=this,l=function(e){return f.s.charAt(e)};if(typeof r!="undefined")var c=[];t||(a=!0);while(i<u){var h=l(i);switch(h){case n:if(a&&(n!==t||l(i+1)===t)){i+=1,s.push(l(i));break}if(n!==t)break;case t:a=!a;break;case e:a&&t?s.push(h):(o.push(s.join("")),s.length=0);break;case r:a?s.push(h):c&&(o.push(s.join("")),c.push(o),o=[],s.length=0);break;default:a&&s.push(h)}i+=1}return o.push(s.join("")),c?(c.push(o),c):o},replaceAll:function(e,t){var n=this.s.split(e).join(t);return new this.constructor(n)},right:function(e){if(e>=0){var t=this.s.substr(this.s.length-e,e);return new this.constructor(t)}return this.left(-e)},setValue:function(e){return n(this,e),this},slugify:function(){var e=(new r(this.s.replace(/[^\w\s-]/g,"").toLowerCase())).dasherize().s;return e.charAt(0)==="-"&&(e=e.substr(1)),new this.constructor(e)},startsWith:function(e){return this.s.lastIndexOf(e,0)===0},stripPunctuation:function(){return new this.constructor(this.s.replace(/[^\w\s]|_/g,"").replace(/\s+/g," "))},stripTags:function(){var e=this.s,t=arguments.length>0?arguments:[""];return d(t,function(t){e=e.replace(RegExp("</?"+t+"[^<>]*>","gi"),"")}),new this.constructor(e)},template:function(e,t,n){var r=this.s,t=t||p.TMPL_OPEN,n=n||p.TMPL_CLOSE,i=t.replace(/[-[\]()*\s]/g,"\\$&").replace(/\$/g,"\\$"),s=n.replace(/[-[\]()*\s]/g,"\\$&").replace(/\$/g,"\\$"),o=new RegExp(i+"(.+?)"+s,"g"),u=r.match(o)||[];return u.forEach(function(i){var s=i.substring(t.length,i.length-n.length);typeof e[s]!="undefined"&&(r=r.replace(i,e[s]))}),new this.constructor(r)},times:function(e){return new this.constructor((new Array(e+1)).join(this.s))},toBoolean:function(){if(typeof this.orig=="string"){var e=this.s.toLowerCase();return e==="true"||e==="yes"||e==="on"}return this.orig===!0||this.orig===1},toFloat:function(e){var t=parseFloat(this.s);return e?parseFloat(t.toFixed(e)):t},toInt:function(){return/^\s*-?0x/i.test(this.s)?parseInt(this.s,16):parseInt(this.s,10)},trim:function(){var e;return typeof i.trim=="undefined"?e=this.s.replace(/(^\s*|\s*$)/g,""):e=this.s.trim(),new this.constructor(e)},trimLeft:function(){var e;return i.trimLeft?e=this.s.trimLeft():e=this.s.replace(/(^\s*)/g,""),new this.constructor(e)},trimRight:function(){var e;return i.trimRight?e=this.s.trimRight():e=this.s.replace(/\s+$/,""),new this.constructor(e)},truncate:function(e,t){var n=this.s;e=~~e,t=t||"...";if(n.length<=e)return new this.constructor(n);var i=function(e){return e.toUpperCase()!==e.toLowerCase()?"A":" "},s=n.slice(0,e+1).replace(/.(?=\W*\w*$)/g,i);return s.slice(s.length-2).match(/\w\w/)?s=s.replace(/\s*\S+$/,""):s=(new r(s.slice(0,s.length-1))).trimRight().s,(s+t).length>n.length?new r(n):new r(n.slice(0,s.length)+t)},toCSV:function(){function u(e){return e!==null&&e!==""}var e=",",t='"',n="\\",i=!0,s=!1,o=[];typeof arguments[0]=="object"?(e=arguments[0].delimiter||e,e=arguments[0].separator||e,t=arguments[0].qualifier||t,i=!!arguments[0].encloseNumbers,n=arguments[0].escape||n,s=!!arguments[0].keys):typeof arguments[0]=="string"&&(e=arguments[0]),typeof arguments[1]=="string"&&(t=arguments[1]),arguments[1]===null&&(t=null);if(this.orig instanceof Array)o=this.orig;else for(var a in this.orig)this.orig.hasOwnProperty(a)&&(s?o.push(a):o.push(this.orig[a]));var f=n+t,l=[];for(var c=0;c<o.length;++c){var h=u(t);typeof o[c]=="number"&&(h&=i),h&&l.push(t);if(o[c]!==null&&o[c]!==undefined){var p=(new r(o[c])).replaceAll(t,f).s;l.push(p)}else l.push("");h&&l.push(t),e&&l.push(e)}return l.length=l.length-1,new this.constructor(l.join(""))},toString:function(){return this.s},underscore:function(){var e=this.trim().s.replace(/([a-z\d])([A-Z]+)/g,"$1_$2").replace(/[-\s]+/g,"_").toLowerCase();return(new r(this.s.charAt(0))).isUpper()&&(e="_"+e),new this.constructor(e)},unescapeHTML:function(){return new this.constructor(this.s.replace(/\&([^;]+);/g,function(e,t){var n;return t in v?v[t]:(n=t.match(/^#x([\da-fA-F]+)$/))?String.fromCharCode(parseInt(n[1],16)):(n=t.match(/^#(\d+)$/))?String.fromCharCode(~~n[1]):e}))},valueOf:function(){return this.s.valueOf()}},o=[],f=c();for(var l in f)(function(e){var t=i[e];typeof t=="function"&&(s[e]||(f[e]==="string"?s[e]=function(){return new this.constructor(t.apply(this,arguments))}:s[e]=t))})(l);s.repeat=s.times,s.include=s.contains,s.toInteger=s.toInt,s.toBool=s.toBoolean,s.decodeHTMLEntities=s.decodeHtmlEntities,s.constructor=r,p.extendPrototype=u,p.restorePrototype=a,p.VERSION=e,p.TMPL_OPEN="{{",p.TMPL_CLOSE="}}",p.ENTITIES=t,typeof module!="undefined"&&typeof module.exports!="undefined"?module.exports=p:typeof define=="function"&&define.amd?define([],function(){return p}):window.S=p;var v={lt:"<",gt:">",quot:'"',apos:"'",amp:"&"},m={};for(var g in v)m[v[g]]=g;t={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,"OElig;":338,"oelig;":339,"Scaron;":352,"scaron;":353,"Yuml;":376,"fnof;":402,"circ;":710,"tilde;":732,"Alpha;":913,"Beta;":914,"Gamma;":915,"Delta;":916,"Epsilon;":917,"Zeta;":918,"Eta;":919,"Theta;":920,"Iota;":921,"Kappa;":922,"Lambda;":923,"Mu;":924,"Nu;":925,"Xi;":926,"Omicron;":927,"Pi;":928,"Rho;":929,"Sigma;":931,"Tau;":932,"Upsilon;":933,"Phi;":934,"Chi;":935,"Psi;":936,"Omega;":937,"alpha;":945,"beta;":946,"gamma;":947,"delta;":948,"epsilon;":949,"zeta;":950,"eta;":951,"theta;":952,"iota;":953,"kappa;":954,"lambda;":955,"mu;":956,"nu;":957,"xi;":958,"omicron;":959,"pi;":960,"rho;":961,"sigmaf;":962,"sigma;":963,"tau;":964,"upsilon;":965,"phi;":966,"chi;":967,"psi;":968,"omega;":969,"thetasym;":977,"upsih;":978,"piv;":982,"ensp;":8194,"emsp;":8195,"thinsp;":8201,"zwnj;":8204,"zwj;":8205,"lrm;":8206,"rlm;":8207,"ndash;":8211,"mdash;":8212,"lsquo;":8216,"rsquo;":8217,"sbquo;":8218,"ldquo;":8220,"rdquo;":8221,"bdquo;":8222,"dagger;":8224,"Dagger;":8225,"bull;":8226,"hellip;":8230,"permil;":8240,"prime;":8242,"Prime;":8243,"lsaquo;":8249,"rsaquo;":8250,"oline;":8254,"frasl;":8260,"euro;":8364,"image;":8465,"weierp;":8472,"real;":8476,"trade;":8482,"alefsym;":8501,"larr;":8592,"uarr;":8593,"rarr;":8594,"darr;":8595,"harr;":8596,"crarr;":8629,"lArr;":8656,"uArr;":8657,"rArr;":8658,"dArr;":8659,"hArr;":8660,"forall;":8704,"part;":8706,"exist;":8707,"empty;":8709,"nabla;":8711,"isin;":8712,"notin;":8713,"ni;":8715,"prod;":8719,"sum;":8721,"minus;":8722,"lowast;":8727,"radic;":8730,"prop;":8733,"infin;":8734,"ang;":8736,"and;":8743,"or;":8744,"cap;":8745,"cup;":8746,"int;":8747,"there4;":8756,"sim;":8764,"cong;":8773,"asymp;":8776,"ne;":8800,"equiv;":8801,"le;":8804,"ge;":8805,"sub;":8834,"sup;":8835,"nsub;":8836,"sube;":8838,"supe;":8839,"oplus;":8853,"otimes;":8855,"perp;":8869,"sdot;":8901,"lceil;":8968,"rceil;":8969,"lfloor;":8970,"rfloor;":8971,"lang;":9001,"rang;":9002,"loz;":9674,"spades;":9824,"clubs;":9827,"hearts;":9829,"diams;":9830}}.call(this);
diff --git a/public/src/modules/taskbar.js b/public/src/modules/taskbar.js
index a4397901e2..3f7ac91ed5 100644
--- a/public/src/modules/taskbar.js
+++ b/public/src/modules/taskbar.js
@@ -110,4 +110,4 @@ define(function() {
toggleNew: taskbar.toggleNew,
updateActive: taskbar.updateActive
}
-});
\ No newline at end of file
+});
diff --git a/public/src/modules/uploader.js b/public/src/modules/uploader.js
index fe9715e4d0..a34ce0b08c 100644
--- a/public/src/modules/uploader.js
+++ b/public/src/modules/uploader.js
@@ -100,4 +100,4 @@ define(function() {
};
return module;
-});
\ No newline at end of file
+});
diff --git a/public/src/overrides.js b/public/src/overrides.js
index fe29fdf80e..e77371fa71 100644
--- a/public/src/overrides.js
+++ b/public/src/overrides.js
@@ -73,4 +73,4 @@ if ('undefined' !== typeof window) {
e.button === 2 || _clearMenus();
});
-}
\ No newline at end of file
+}
diff --git a/public/src/templates.js b/public/src/templates.js
index 368c80a277..cde5353824 100644
--- a/public/src/templates.js
+++ b/public/src/templates.js
@@ -322,4 +322,4 @@
module: {
exports: {}
}
-} : module);
\ No newline at end of file
+} : module);
diff --git a/public/src/translator.js b/public/src/translator.js
index 230e3c349e..27ec82bf39 100644
--- a/public/src/translator.js
+++ b/public/src/translator.js
@@ -243,4 +243,4 @@
module: {
exports: {}
}
-} : module);
\ No newline at end of file
+} : module);
diff --git a/public/src/utils.js b/public/src/utils.js
index 15ae1c6e63..9e733f8234 100644
--- a/public/src/utils.js
+++ b/public/src/utils.js
@@ -274,4 +274,4 @@
module: {
exports: {}
}
-} : module);
\ No newline at end of file
+} : module);
diff --git a/public/src/variables.js b/public/src/variables.js
index 20810a3ecb..0473499176 100644
--- a/public/src/variables.js
+++ b/public/src/variables.js
@@ -38,4 +38,4 @@
ajaxify.variables.set($(element).attr('template-variable'), value);
});
};
-}(ajaxify || {}));
\ No newline at end of file
+}(ajaxify || {}));
diff --git a/public/src/widgets.js b/public/src/widgets.js
index 47dffea3ce..62a9b15aaa 100644
--- a/public/src/widgets.js
+++ b/public/src/widgets.js
@@ -79,4 +79,4 @@
checkCallback();
};
-}(ajaxify || {}));
\ No newline at end of file
+}(ajaxify || {}));
diff --git a/src/categories.js b/src/categories.js
index 409e8e7aeb..11c86e81fd 100644
--- a/src/categories.js
+++ b/src/categories.js
@@ -324,4 +324,4 @@ var db = require('./database'),
emitter.on('event:newpost', Categories.onNewPostMade);
-}(exports));
\ No newline at end of file
+}(exports));
diff --git a/src/categories/activeusers.js b/src/categories/activeusers.js
index 7fd86651aa..418b891aa9 100644
--- a/src/categories/activeusers.js
+++ b/src/categories/activeusers.js
@@ -80,4 +80,4 @@ module.exports = function(Categories) {
}
});
};
-};
\ No newline at end of file
+};
diff --git a/src/categories/update.js b/src/categories/update.js
index d52bd6904e..002628d723 100644
--- a/src/categories/update.js
+++ b/src/categories/update.js
@@ -43,4 +43,4 @@ module.exports = function(Categories) {
});
};
-};
\ No newline at end of file
+};
diff --git a/src/controllers/accounts.js b/src/controllers/accounts.js
index 518c170445..2d4b64014e 100644
--- a/src/controllers/accounts.js
+++ b/src/controllers/accounts.js
@@ -460,4 +460,4 @@ accountsController.getNotifications = function(req, res, next) {
});
};
-module.exports = accountsController;
\ No newline at end of file
+module.exports = accountsController;
diff --git a/src/controllers/admin.js b/src/controllers/admin.js
index a326029f97..1220a8d3d6 100644
--- a/src/controllers/admin.js
+++ b/src/controllers/admin.js
@@ -169,4 +169,4 @@ adminController.sounds.get = function(req, res, next) {
});
};
-module.exports = adminController;
\ No newline at end of file
+module.exports = adminController;
diff --git a/src/controllers/admin/users.js b/src/controllers/admin/users.js
index c2bb41fb80..1d68d993c7 100644
--- a/src/controllers/admin/users.js
+++ b/src/controllers/admin/users.js
@@ -47,4 +47,4 @@ usersController.getCSV = function(req, res, next) {
});
};
-module.exports = usersController;
\ No newline at end of file
+module.exports = usersController;
diff --git a/src/controllers/api.js b/src/controllers/api.js
index d3aef0b3fe..fb94b4c6c3 100644
--- a/src/controllers/api.js
+++ b/src/controllers/api.js
@@ -65,4 +65,4 @@ apiController.getConfig = function(req, res, next) {
};
-module.exports = apiController;
\ No newline at end of file
+module.exports = apiController;
diff --git a/src/controllers/index.js b/src/controllers/index.js
index b78e05bb2b..eb0af56d65 100644
--- a/src/controllers/index.js
+++ b/src/controllers/index.js
@@ -266,4 +266,4 @@ Controllers.outgoing = function(req, res, next) {
}
};
-module.exports = Controllers;
\ No newline at end of file
+module.exports = Controllers;
diff --git a/src/controllers/topics.js b/src/controllers/topics.js
index 5fdf606d47..19fa9e66a9 100644
--- a/src/controllers/topics.js
+++ b/src/controllers/topics.js
@@ -181,4 +181,4 @@ topicsController.get = function(req, res, next) {
});
};
-module.exports = topicsController;
\ No newline at end of file
+module.exports = topicsController;
diff --git a/src/controllers/users.js b/src/controllers/users.js
index 4d97298c40..bd8687a809 100644
--- a/src/controllers/users.js
+++ b/src/controllers/users.js
@@ -100,4 +100,4 @@ usersController.getUsersForSearch = function(req, res, next) {
-module.exports = usersController;
\ No newline at end of file
+module.exports = usersController;
diff --git a/src/database.js b/src/database.js
index 71775e8807..ea861a9864 100644
--- a/src/database.js
+++ b/src/database.js
@@ -11,4 +11,4 @@ if(!databaseType) {
var db = require('./database/' + databaseType);
-module.exports = db;
\ No newline at end of file
+module.exports = db;
diff --git a/src/emailer.js b/src/emailer.js
index 402bce31cd..dd1c4a1e55 100644
--- a/src/emailer.js
+++ b/src/emailer.js
@@ -51,4 +51,4 @@ Emailer.send = function(template, uid, params) {
});
};
-module.exports = Emailer;
\ No newline at end of file
+module.exports = Emailer;
diff --git a/src/emitter.js b/src/emitter.js
index 0ce9395048..2d076613be 100644
--- a/src/emitter.js
+++ b/src/emitter.js
@@ -1,4 +1,4 @@
var events = require('events'),
eventEmitter = new events.EventEmitter();
-module.exports = eventEmitter;
\ No newline at end of file
+module.exports = eventEmitter;
diff --git a/src/events.js b/src/events.js
index 05d6e2cee5..64b76fdfdd 100644
--- a/src/events.js
+++ b/src/events.js
@@ -113,4 +113,4 @@ var fs = require('fs'),
});
};
-}(module.exports));
\ No newline at end of file
+}(module.exports));
diff --git a/src/favourites.js b/src/favourites.js
index 30ef254cfb..cbd63eed81 100644
--- a/src/favourites.js
+++ b/src/favourites.js
@@ -218,4 +218,4 @@ var async = require('async'),
}, callback);
};
-}(exports));
\ No newline at end of file
+}(exports));
diff --git a/src/image.js b/src/image.js
index 49160dd45a..7539840fde 100644
--- a/src/image.js
+++ b/src/image.js
@@ -44,4 +44,4 @@ image.convertImageToBase64 = function(path, callback) {
});
};
-module.exports = image;
\ No newline at end of file
+module.exports = image;
diff --git a/src/install.js b/src/install.js
index 680eefeccb..885dd5517c 100644
--- a/src/install.js
+++ b/src/install.js
@@ -510,4 +510,4 @@ var async = require('async'),
}
};
-module.exports = install;
\ No newline at end of file
+module.exports = install;
diff --git a/src/languages.js b/src/languages.js
index 6980ce1e85..679916dcf0 100644
--- a/src/languages.js
+++ b/src/languages.js
@@ -42,4 +42,4 @@ Languages.list = function(callback) {
});
};
-module.exports = Languages;
\ No newline at end of file
+module.exports = Languages;
diff --git a/src/messaging.js b/src/messaging.js
index 7624b07286..03beb8b34e 100644
--- a/src/messaging.js
+++ b/src/messaging.js
@@ -147,4 +147,4 @@ var db = require('./database'),
});
};
-}(exports));
\ No newline at end of file
+}(exports));
diff --git a/src/middleware/admin.js b/src/middleware/admin.js
index a9fb9d8148..03ee4ed054 100644
--- a/src/middleware/admin.js
+++ b/src/middleware/admin.js
@@ -89,4 +89,4 @@ middleware.buildHeader = function(req, res, next) {
module.exports = function(webserver) {
app = webserver;
return middleware;
-};
\ No newline at end of file
+};
diff --git a/src/middleware/index.js b/src/middleware/index.js
index 693f17b1c1..f0e9e79323 100644
--- a/src/middleware/index.js
+++ b/src/middleware/index.js
@@ -218,4 +218,4 @@ module.exports = function(app, data) {
});
return middleware;
-};
\ No newline at end of file
+};
diff --git a/src/middleware/middleware.js b/src/middleware/middleware.js
index 35b52b32fe..7e9477e16d 100644
--- a/src/middleware/middleware.js
+++ b/src/middleware/middleware.js
@@ -355,4 +355,4 @@ module.exports = function(webserver) {
middleware.admin = require('./admin')(webserver);
return middleware;
-};
\ No newline at end of file
+};
diff --git a/src/routes/authentication.js b/src/routes/authentication.js
index 2728f58116..604acd0440 100644
--- a/src/routes/authentication.js
+++ b/src/routes/authentication.js
@@ -214,4 +214,4 @@
uid: uid
});
});
-}(exports));
\ No newline at end of file
+}(exports));
diff --git a/src/routes/debug.js b/src/routes/debug.js
index 0e9dc0920f..492dbf0ba5 100644
--- a/src/routes/debug.js
+++ b/src/routes/debug.js
@@ -64,4 +64,4 @@ module.exports = function(app, middleware, controllers) {
// res.send(200);
});
});
-};
\ No newline at end of file
+};
diff --git a/src/routes/feeds.js b/src/routes/feeds.js
index da04a67889..65b543f5ca 100644
--- a/src/routes/feeds.js
+++ b/src/routes/feeds.js
@@ -166,4 +166,4 @@ module.exports = function(app, middleware, controllers){
app.get('/category/:category_id.rss', hasCategoryPrivileges, generateForCategory);
app.get('/recent.rss', generateForRecent);
app.get('/popular.rss', generateForPopular);
-};
\ No newline at end of file
+};
diff --git a/src/routes/index.js b/src/routes/index.js
index 1f89c6d4a9..aef5c28b37 100644
--- a/src/routes/index.js
+++ b/src/routes/index.js
@@ -152,4 +152,4 @@ module.exports = function(app, middleware) {
require('./debug')(app, middleware, controllers);
}
});
-};
\ No newline at end of file
+};
diff --git a/src/routes/plugins.js b/src/routes/plugins.js
index 2108ee83fa..334ad3fbbf 100644
--- a/src/routes/plugins.js
+++ b/src/routes/plugins.js
@@ -51,4 +51,4 @@ module.exports = function(app, middleware, controllers) {
res.redirect('/404');
}
});
-};
\ No newline at end of file
+};
diff --git a/src/sitemap.js b/src/sitemap.js
index 56db3b1b2c..8b3c7d6bf6 100644
--- a/src/sitemap.js
+++ b/src/sitemap.js
@@ -88,4 +88,4 @@ var path = require('path'),
}
};
-module.exports = sitemap;
\ No newline at end of file
+module.exports = sitemap;
diff --git a/src/socket.io/categories.js b/src/socket.io/categories.js
index eaa6eb0966..80af126f29 100644
--- a/src/socket.io/categories.js
+++ b/src/socket.io/categories.js
@@ -47,4 +47,4 @@ SocketCategories.getTopicCount = function(socket, cid, callback) {
categories.getCategoryField(cid, 'topic_count', callback);
};
-module.exports = SocketCategories;
\ No newline at end of file
+module.exports = SocketCategories;
diff --git a/src/socket.io/index.js b/src/socket.io/index.js
index 713951cfea..60e1d4e035 100644
--- a/src/socket.io/index.js
+++ b/src/socket.io/index.js
@@ -319,4 +319,4 @@ function emitOnlineUserCount(callback) {
/* Exporting */
-module.exports = Sockets;
\ No newline at end of file
+module.exports = Sockets;
diff --git a/src/socket.io/meta.js b/src/socket.io/meta.js
index e2733e33a7..db90577891 100644
--- a/src/socket.io/meta.js
+++ b/src/socket.io/meta.js
@@ -102,4 +102,4 @@ SocketMeta.rooms.getAll = function(socket, data, callback) {
/* Exports */
-module.exports = SocketMeta;
\ No newline at end of file
+module.exports = SocketMeta;
diff --git a/src/socket.io/modules.js b/src/socket.io/modules.js
index 7dea871b32..880bb4cbf5 100644
--- a/src/socket.io/modules.js
+++ b/src/socket.io/modules.js
@@ -231,4 +231,4 @@ SocketModules.sounds.getMapping = function(socket, data, callback) {
meta.sounds.getMapping(callback);
};
-module.exports = SocketModules;
\ No newline at end of file
+module.exports = SocketModules;
diff --git a/src/socket.io/notifications.js b/src/socket.io/notifications.js
index 3c41f33d5d..fd9204f08f 100644
--- a/src/socket.io/notifications.js
+++ b/src/socket.io/notifications.js
@@ -12,4 +12,4 @@ SocketNotifs.getCount = function(socket, data, callback) {
user.notifications.getUnreadCount(socket.uid, callback);
};
-module.exports = SocketNotifs;
\ No newline at end of file
+module.exports = SocketNotifs;
diff --git a/src/socket.io/posts.js b/src/socket.io/posts.js
index 8383f58f82..f2144896cd 100644
--- a/src/socket.io/posts.js
+++ b/src/socket.io/posts.js
@@ -318,4 +318,4 @@ SocketPosts.getCategory = function(socket, pid, callback) {
posts.getCidByPid(pid, callback);
};
-module.exports = SocketPosts;
\ No newline at end of file
+module.exports = SocketPosts;
diff --git a/src/socket.io/tools.js b/src/socket.io/tools.js
index a4907b2e7d..4aace7cfef 100644
--- a/src/socket.io/tools.js
+++ b/src/socket.io/tools.js
@@ -6,4 +6,4 @@ SocketTools.log = function(socket, data, callback) {
//winston.info("captured console.log:", data)
};
-module.exports = SocketTools;
\ No newline at end of file
+module.exports = SocketTools;
diff --git a/src/socket.io/topics.js b/src/socket.io/topics.js
index 1736a7c7ab..17e2ef3684 100644
--- a/src/socket.io/topics.js
+++ b/src/socket.io/topics.js
@@ -313,4 +313,4 @@ SocketTopics.getTidIndex = function(socket, tid, callback) {
categories.getTopicIndex(tid, callback);
};
-module.exports = SocketTopics;
\ No newline at end of file
+module.exports = SocketTopics;
diff --git a/src/socket.io/user.js b/src/socket.io/user.js
index ce78fe9976..4c564c18c9 100644
--- a/src/socket.io/user.js
+++ b/src/socket.io/user.js
@@ -248,4 +248,4 @@ SocketUser.setStatus = function(socket, status, callback) {
/* Exports */
-module.exports = SocketUser;
\ No newline at end of file
+module.exports = SocketUser;
diff --git a/src/socket.io/widgets.js b/src/socket.io/widgets.js
index 6347cc249a..914cb0bc86 100644
--- a/src/socket.io/widgets.js
+++ b/src/socket.io/widgets.js
@@ -8,4 +8,4 @@ SocketWidgets.render = function(socket, data, callback) {
widgets.render(socket.uid, data, callback);
};
-module.exports = SocketWidgets;
\ No newline at end of file
+module.exports = SocketWidgets;
diff --git a/src/threadTools.js b/src/threadTools.js
index 7e7c8e509b..565bf93ec6 100644
--- a/src/threadTools.js
+++ b/src/threadTools.js
@@ -293,4 +293,4 @@ var winston = require('winston'),
});
});
};
-}(exports));
\ No newline at end of file
+}(exports));
diff --git a/src/topics.js b/src/topics.js
index a5cbd0b69b..e4accc9250 100644
--- a/src/topics.js
+++ b/src/topics.js
@@ -478,4 +478,4 @@ var async = require('async'),
});
});
};
-}(exports));
\ No newline at end of file
+}(exports));
diff --git a/src/topics/create.js b/src/topics/create.js
index b6aac66077..f597b53d7d 100644
--- a/src/topics/create.js
+++ b/src/topics/create.js
@@ -219,4 +219,4 @@ module.exports = function(Topics) {
], callback);
};
-};
\ No newline at end of file
+};
diff --git a/src/topics/fork.js b/src/topics/fork.js
index 005b137058..f935132d81 100644
--- a/src/topics/fork.js
+++ b/src/topics/fork.js
@@ -99,4 +99,4 @@ module.exports = function(Topics) {
});
});
};
-};
\ No newline at end of file
+};
diff --git a/src/topics/unread.js b/src/topics/unread.js
index e6f0cb389c..b6d7460d12 100644
--- a/src/topics/unread.js
+++ b/src/topics/unread.js
@@ -223,4 +223,4 @@ module.exports = function(Topics) {
};
-};
\ No newline at end of file
+};
diff --git a/src/upgrade.js b/src/upgrade.js
index ef1f820876..cd364b3843 100644
--- a/src/upgrade.js
+++ b/src/upgrade.js
@@ -628,4 +628,4 @@ Upgrade.upgrade = function(callback) {
});
};
-module.exports = Upgrade;
\ No newline at end of file
+module.exports = Upgrade;
diff --git a/src/user/create.js b/src/user/create.js
index f8f95b0878..3bbfe9e9c7 100644
--- a/src/user/create.js
+++ b/src/user/create.js
@@ -141,4 +141,4 @@ module.exports = function(User) {
});
});
};
-};
\ No newline at end of file
+};
diff --git a/src/user/follow.js b/src/user/follow.js
index 1944e9534f..e9b597e6e5 100644
--- a/src/user/follow.js
+++ b/src/user/follow.js
@@ -65,4 +65,4 @@ module.exports = function(User) {
db.isSetMember('following:' + uid, theirid, callback);
};
-};
\ No newline at end of file
+};
diff --git a/src/user/notifications.js b/src/user/notifications.js
index df3096b8e8..7790ace2f7 100644
--- a/src/user/notifications.js
+++ b/src/user/notifications.js
@@ -180,4 +180,4 @@ var async = require('async'),
});
};
-}(exports));
\ No newline at end of file
+}(exports));
diff --git a/src/user/profile.js b/src/user/profile.js
index 8620dde36e..f830061f6e 100644
--- a/src/user/profile.js
+++ b/src/user/profile.js
@@ -253,4 +253,4 @@ module.exports = function(User) {
}
};
-};
\ No newline at end of file
+};
diff --git a/src/user/reset.js b/src/user/reset.js
index 7e3b2d75c8..2ceceaef02 100644
--- a/src/user/reset.js
+++ b/src/user/reset.js
@@ -89,4 +89,4 @@ var async = require('async'),
});
};
-}(exports));
\ No newline at end of file
+}(exports));
diff --git a/src/user/search.js b/src/user/search.js
index 90a17cb521..c014435a97 100644
--- a/src/user/search.js
+++ b/src/user/search.js
@@ -41,4 +41,3 @@ module.exports = function(User) {
});
};
};
-
diff --git a/src/user/settings.js b/src/user/settings.js
index 7e9665d9f0..a3310a7210 100644
--- a/src/user/settings.js
+++ b/src/user/settings.js
@@ -50,4 +50,4 @@ module.exports = function(User) {
notificationSounds: data.notificationSounds
}, callback);
};
-};
\ No newline at end of file
+};
diff --git a/src/widgets.js b/src/widgets.js
index 65bf0cba74..f55598df4c 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -99,4 +99,4 @@ var async = require('async'),
});
};
-}(exports));
\ No newline at end of file
+}(exports));
diff --git a/tests/groups.js b/tests/groups.js
index ed7c8f3b8c..96d98eeaeb 100644
--- a/tests/groups.js
+++ b/tests/groups.js
@@ -285,4 +285,4 @@ describe('Groups', function() {
});
});
});
-});
\ No newline at end of file
+});
diff --git a/tests/topics.js b/tests/topics.js
index c28456fdbc..5433ab3746 100644
--- a/tests/topics.js
+++ b/tests/topics.js
@@ -77,4 +77,4 @@ describe('Topic\'s', function() {
after(function() {
db.flushdb();
});
-});
\ No newline at end of file
+});
diff --git a/tests/user.js b/tests/user.js
index 5da9412802..fe9f21d941 100644
--- a/tests/user.js
+++ b/tests/user.js
@@ -45,4 +45,4 @@ describe('User', function() {
after(function() {
db.flushdb();
});
-});
\ No newline at end of file
+});