Add plex alert to all admin page and home and update timeout alert

pull/9/head
Chewbaka 6 years ago
parent aea8b9191c
commit dc55038b32

@ -22,7 +22,7 @@ class Controller_Admin extends Controller_Template
$this->template->user = Session::get('user'); $this->template->user = Session::get('user');
$this->template->js_bottom = []; $this->template->js_bottom = ['plex_alert.js'];
} }
public function action_index() public function action_index()

@ -20,7 +20,6 @@ class Controller_Admin_Libraries extends Controller_Admin
public function action_permissions() public function action_permissions()
{ {
$this->template->js_bottom = ['plex_alert.js'];
$body = View::forge('admin/libraries/permissions'); $body = View::forge('admin/libraries/permissions');

@ -38,7 +38,7 @@ class Controller_Home extends Controller_Template
$this->template->MenuServer = $server; $this->template->MenuServer = $server;
$this->template->MenuLibraries = $libraries; $this->template->MenuLibraries = $libraries;
$this->template->js_bottom = ['clappr.min.js', 'player.js']; $this->template->js_bottom = ['clappr.min.js', 'player.js', 'plex_alert.js'];
} }
public function action_index() public function action_index()

@ -23,7 +23,7 @@ function show_alert(type, message) {
document.body.appendChild(div_container); document.body.appendChild(div_container);
setTimeout(hide_alert, 10000); setTimeout(hide_alert, 1000);
} }
function hide_alert() { function hide_alert() {

Loading…
Cancel
Save