From 0c9160f8fbdfb4c4498798c0bcd3b543603eef41 Mon Sep 17 00:00:00 2001 From: Lars Jung <lrsjng@gmail.com> Date: Sat, 24 May 2014 01:16:00 +0200 Subject: [PATCH] Remove 'mode' extension. --- src/_h5ai/client/js/inc/ext/mode.js | 33 ----------------------------- src/_h5ai/conf/options.json | 13 ------------ 2 files changed, 46 deletions(-) delete mode 100644 src/_h5ai/client/js/inc/ext/mode.js diff --git a/src/_h5ai/client/js/inc/ext/mode.js b/src/_h5ai/client/js/inc/ext/mode.js deleted file mode 100644 index e8350432..00000000 --- a/src/_h5ai/client/js/inc/ext/mode.js +++ /dev/null @@ -1,33 +0,0 @@ - -modulejs.define('ext/mode', ['_', '$', 'core/settings', 'core/server'], function (_, $, allsettings, server) { - - var settings = _.extend({ - enabled: false, - display: 0 - }, allsettings.mode), - - init = function () { - - if (!settings.enabled) { - return; - } - - var info = ''; - - if (server.backend) { - info += server.backend; - } - if (settings.display > 0 && server.name) { - info += (info ? ' on ' : '') + server.name; - } - if (settings.display > 1 && server.version) { - info += (info ? '-' : '') + server.version; - } - - if (info) { - $('#bottombar .left').append('<span id="server-mode"> (' + info + ') </span>'); - } - }; - - init(); -}); diff --git a/src/_h5ai/conf/options.json b/src/_h5ai/conf/options.json index b95a3504..d7c2acc8 100644 --- a/src/_h5ai/conf/options.json +++ b/src/_h5ai/conf/options.json @@ -185,19 +185,6 @@ Options "enabled": true }, - /* - Shows the server mode in the bottom left corner. - - - display: - 0: only show mode - 1: mode and servername - 2: mode, servername and -version - */ - "mode": { - "enabled": true, - "display": 2 - }, - /* Adds Piwik tracker javascript code.