";
+ const formData = new FormData($(this)[0]);
+ $("#banner_edit_button_"+id).html("= display_fa_icon('spinner', '', 'fa-pulse') ?>").attr("disabled", true);
+ $.ajax({
+ url: "/ajax/actions.ajax.php?function=banner_edit&banner_id=" + id,
+ type: 'POST',
+ data: formData,
+ cache: false,
+ contentType: false,
+ processData: false,
+ success: function(data) {
+ if (!data) {
+ $("#message_container").html(success_msg).show().delay(3000).fadeOut();
+ }
+ else {
+ $("#message_container").html(data).show().delay(10000).fadeOut();
+ }
+ $("#banner_edit_button_" + id).html("= display_fa_icon('pencil-alt', '', 'fa-fw') ?>").attr("disabled", false);
+ },
+ error: function(err) {
+ console.error(err);
+ $("#banner_edit_button_" + id).html("= display_fa_icon('pencil-alt', '', 'fa-fw') ?>").attr("disabled", false);
+ $("#message_container").html(error_msg).show().delay(10000).fadeOut();
+ }
+ });
+ });
+
+
\ No newline at end of file
diff --git a/scripts/js2/polyfills.js b/scripts/js2/polyfills.js
deleted file mode 100644
index f88ce4e..0000000
--- a/scripts/js2/polyfills.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/* closest */
-if (!Element.prototype.matches) {
- Element.prototype.matches = Element.prototype.msMatchesSelector ||
- Element.prototype.webkitMatchesSelector;
-}
-if (!Element.prototype.closest) {
- Element.prototype.closest = function(s) {
- var el = this;
-
- do {
- if (el.matches(s)) return el;
- el = el.parentElement || el.parentNode;
- } while (el !== null && el.nodeType === 1);
- return null;
- };
-}
\ No newline at end of file
diff --git a/scripts/reader.min.js b/scripts/reader.min.js
deleted file mode 100644
index e2e0589..0000000
--- a/scripts/reader.min.js
+++ /dev/null
@@ -1,8 +0,0 @@
-!function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=89)}([function(e,t){var r=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(2),a=r(0),i=r(8),o=r(9),u=r(14),s=function(e,t,r){var l,c,d,f=e&s.F,h=e&s.G,g=e&s.S,p=e&s.P,m=e&s.B,v=e&s.W,y=h?a:a[t]||(a[t]={}),w=y.prototype,b=h?n:g?n[t]:(n[t]||{}).prototype;for(l in h&&(r=t),r)(c=!f&&b&&void 0!==b[l])&&u(y,l)||(d=c?b[l]:r[l],y[l]=h&&"function"!=typeof b[l]?r[l]:m&&c?i(d,n):v&&b[l]==d?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):p&&"function"==typeof d?i(Function.call,d):d,p&&((y.virtual||(y.virtual={}))[l]=d,e&s.R&&w&&!w[l]&&o(w,l,d)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,r){var n=r(45)("wks"),a=r(34),i=r(2).Symbol,o="function"==typeof i;(e.exports=function(e){return n[e]||(n[e]=o&&i[e]||(o?i:a)("Symbol."+e))}).store=n},function(e,t,r){var n=r(6),a=r(59),i=r(43),o=Object.defineProperty;t.f=r(7)?Object.defineProperty:function(e,t,r){if(n(e),t=i(t,!0),n(r),a)try{return o(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){var n=r(5);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){e.exports=!r(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(22);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(4),a=r(23);e.exports=r(7)?function(e,t,r){return n.f(e,t,a(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(62),a=r(40);e.exports=function(e){return n(a(e))}},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,r){"use strict";t.__esModule=!0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(106));t.default=function(){function e(e,t){for(var r=0;r=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){e.exports={default:r(115),__esModule:!0}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports={}},function(e,t,r){r(98);for(var n=r(2),a=r(9),i=r(17),o=r(3)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;sw;w++)if((m=t?y(o(g=e[w])[0],g[1]):y(e[w]))===l||m===c)return m}else for(p=v.call(e);!(g=p.next()).done;)if((m=a(p,y,g.value,t))===l||m===c)return m}).BREAK=l,t.RETURN=c},function(e,t,r){"use strict";t.__esModule=!0;var n=o(r(132)),a=o(r(134)),i="function"==typeof a.default&&"symbol"==typeof n.default?function(e){return typeof e}:function(e){return e&&"function"==typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function o(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof a.default&&"symbol"===i(n.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":void 0===e?"undefined":i(e)}},function(e,t,r){"use strict";t.__esModule=!0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(27));t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,n.default)(t))&&"function"!=typeof t?e:t}},function(e,t,r){"use strict";t.__esModule=!0;var n=o(r(146)),a=o(r(150)),i=o(r(27));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,a.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(n.default?(0,n.default)(e,t):e.__proto__=t)}},function(e,t){},function(e,t,r){var n=r(6),a=r(95),i=r(46),o=r(44)("IE_PROTO"),u=function(){},s=function(){var e,t=r(42)("iframe"),n=i.length;for(t.style.display="none",r(63).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("
+
diff --git a/templates/bootstrap4/forum/forum.tpl.php b/templates/bootstrap4/forum/forum.tpl.php
index 202235c..2c93ea9 100644
--- a/templates/bootstrap4/forum/forum.tpl.php
+++ b/templates/bootstrap4/forum/forum.tpl.php
@@ -164,4 +164,4 @@ $paging = pagination($templateVar['thread_count'], $templateVar['current_page'],
-
\ No newline at end of file
+
diff --git a/templates/bootstrap4/forum/forum_list.tpl.php b/templates/bootstrap4/forum/forum_list.tpl.php
index 9e8df40..b58be74 100644
--- a/templates/bootstrap4/forum/forum_list.tpl.php
+++ b/templates/bootstrap4/forum/forum_list.tpl.php
@@ -35,4 +35,4 @@ foreach ($templateVar['categories'] as $cat_id => $category) {
= ($templateVar['user']->user_id) ? $templateVar['online_users_string'] : "Not viewable by guests." ?>
-
\ No newline at end of file
+
diff --git a/templates/bootstrap4/home.tpl.php b/templates/bootstrap4/home.tpl.php
index 29865c7..4bce77e 100644
--- a/templates/bootstrap4/home.tpl.php
+++ b/templates/bootstrap4/home.tpl.php
@@ -11,7 +11,7 @@
\ No newline at end of file
diff --git a/templates/bootstrap4/md_at_home/partials/clients.tpl.php b/templates/bootstrap4/md_at_home/partials/clients.tpl.php
index 5c5e622..26b2b14 100644
--- a/templates/bootstrap4/md_at_home/partials/clients.tpl.php
+++ b/templates/bootstrap4/md_at_home/partials/clients.tpl.php
@@ -2,19 +2,14 @@
settings.json example:
-{
- "client_secret": "iiesenpaithisisoursecret",
- "client_hostname": "0.0.0.0", // "0.0.0.0" is the default and binds to everything
- "client_port": 443, // 443 is recommended if possible, otherwise use something higher, e.g. 44300
- "client_external_port": 0, //443 is recommended; This port will be send to mdah-backend.
- //You need to forward this to the client_port in your router - 0 uses `client_port`
- "threads": 16,
- "graceful_shutdown_wait_seconds": 60, // Time from graceful shutdown start to force quit
- // This rounds down to 15-second increments
- "max_cache_size_in_mebibytes": 80000,
- "max_kilobits_per_second": 0, // 0 disables max brust limiting
- "max_mebibytes_per_hour": 0, // 0 disables hourly bandwidth limiting
- "web_settings": { // delete this block to disable webui
- "ui_hostname": "127.0.0.1", // "127.0.0.1" is the default and binds to localhost only
- "ui_port": 8080
- }
-}