";
diff --git a/plugins/dynamix/include/DefaultPageLayout.php b/plugins/dynamix/include/DefaultPageLayout.php
index 5c0781d78..713a1ccc8 100644
--- a/plugins/dynamix/include/DefaultPageLayout.php
+++ b/plugins/dynamix/include/DefaultPageLayout.php
@@ -16,6 +16,7 @@
=$var['NAME']?>/=$myPage['name']?>
+
">
@@ -41,6 +42,9 @@ if (strstr('gray,azure',$display['theme'])) {
foreach ($tasks as $page) if ($page['Code']) echo "#nav-item a[href='/{$page['name']}']:before{content:'\\{$page['Code']}'}\n";
foreach ($buttons as $page) if ($page['Code']) echo "#nav-item.{$page['name']} a:before{content:'\\{$page['Code']}'}\n";
}
+$notes = '/var/tmp/unRAIDServer.txt';
+if (!file_exists($notes)) file_put_contents($notes,shell_exec("$docroot/plugins/dynamix.plugin.manager/scripts/plugin changes $docroot/plugins/unRAIDServer/unRAIDServer.plg"));
+$notes = "
"
?>
@@ -169,17 +173,12 @@ function showFooter(data, id) {
if (id !== undefined) $('#'+id).remove();
$('#copyright').prepend(data);
}
-function showNotice(data,plugin) {
- if (plugin)
- var href = "href=\"#\" onclick=\"openBox('/plugins/dynamix.plugin.manager/scripts/plugin&arg1=update&arg2="+plugin+".plg','Update Plugin',600,900,true)\"";
- else
- var href = "href=\"/Plugins\"";
- $('#user-notice').html(data.replace(/
(.*)<\/a>/,"$1"));
+function showNotice(data) {
+ $('#user-notice').html(data.replace(/
(.*)<\/a>/,"$1"));
}
-function showUpgrade(data,plugin) {
- var href = "href=\"#\" onclick=\"hideUpgrade();openBox('/plugins/dynamix.plugin.manager/scripts/plugin&arg1=update&arg2="+plugin+".plg','Update Plugin',600,900,true)\"";
+function showUpgrade(data) {
if ($.cookie('os_upgrade')==null)
- $('.upgrade_notice').html(data.replace(/
(.*)<\/a>/,"$2")+"
").show();
+ $('.upgrade_notice').html(data.replace(/
(.*)<\/a>/,"$1")+"
").show();
}
function hideUpgrade(set) {
$('.upgrade_notice').hide();
@@ -188,6 +187,11 @@ function hideUpgrade(set) {
else
$.removeCookie('os_upgrade',{path:'/'});
}
+function openUpgrade() {
+ swal({title:'Update unRAID OS',text:'Do you want to update to the new version?',type:'warning',showCancelButton:true},function(){
+ openBox('/plugins/dynamix.plugin.manager/scripts/plugin&arg1=update&arg2=unRAIDServer.plg','Update unRAID OS',600,900,true);
+ });
+}
function notifier() {
var tub1 = 0, tub2 = 0, tub3 = 0;
$.post('/webGui/include/Notify.php',{cmd:'get'},function(json) {
@@ -296,7 +300,7 @@ $.ajaxPrefilter(function(s, orig, xhr){