Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
23 changes: 23 additions & 0 deletions core/js/browser-update.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Copyright (c) 2017
* Thomas Müller <thomas.mueller@tmit.eu>
*
* 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);
});
3 changes: 2 additions & 1 deletion core/templates/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
script('core', [
'visitortimezone',
'lostpassword',
'login'
'login',
'browser-update'
]);
?>

Expand Down