From 45d3c96989ba09e358c15563816ac5bc4b184d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Wed, 18 Jan 2017 16:19:27 +0100 Subject: [PATCH 1/2] On the login screen a warning will pop up if an unsupported/outdated browser is used --- bower.json | 3 ++- core/js/browser-update.js | 23 +++++++++++++++++++++++ core/templates/login.php | 6 ++++-- 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 core/js/browser-update.js diff --git a/bower.json b/bower.json index 28a6e3c05fb5..82da2dc797b5 100644 --- a/bower.json +++ b/bower.json @@ -31,6 +31,7 @@ "davclient.js": "https://github.com/evert/davclient.js.git#0.0.1", "es6-promise": "https://github.com/jakearchibald/es6-promise.git#2.3.0", "base64": "0.3.0", - "clipboard": "1.5.12" + "clipboard": "1.5.12", + "browser-update": "^2.0.1" } } diff --git a/core/js/browser-update.js b/core/js/browser-update.js new file mode 100644 index 000000000000..127441367463 --- /dev/null +++ b/core/js/browser-update.js @@ -0,0 +1,23 @@ +/** + * Copyright (c) 2017 + * Thomas Müller + * + * This file is licensed under the Affero General Public License version 3 or later. + * See the COPYING-README file. + */ + +$(document).ready(function() { + + // You can Customize here + window.$buoop = { + vs: { i: 10, f: 45, o: 0, s: 8, c: 45 }, + reminder: 0, // after how many hours should the message reappear + test: false, // true = always show the bar (for testing) + newwindow: true, // open link in new window/tab + url: null, // the url to go to after clicking the notification + noclose:true // Do not show the "ignore" button to close the notification + }; + + var path = OC.filePath('core','vendor','browser-update/browser-update.js'); + $.getScript(path); +}); \ No newline at end of file diff --git a/core/templates/login.php b/core/templates/login.php index 512191fdb8ff..050f0c39ba2a 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -1,10 +1,12 @@ @@ -91,4 +93,4 @@ - From c1ae4565e4e00d3e2befbe97ffefe0698766ac6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Wed, 18 Jan 2017 17:47:48 +0100 Subject: [PATCH 2/2] ... --- core/templates/login.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/templates/login.php b/core/templates/login.php index 050f0c39ba2a..4ef0afbc4388 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -1,7 +1,6 @@ - +