1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-12-26 14:50:03 +01:00

better notifications

* longer delay
* different color for enable and disable
This commit is contained in:
kakwa 2015-06-12 01:07:17 +02:00
parent 8781018021
commit 34d7e23cd2

View File

@ -11,7 +11,13 @@
var checked = document.getElementById(role).checked;
$('input[name=' + role +']').bootstrapSwitch('state', true, true);
if ( ! checked){
$.notify("Added Role '" + DnParentRole + "' (Parent Role of '" + DnRole +"')");
$.notify("Enable Role '" + DnParentRole + "' (Parent Role of '" + DnRole +"')",
{
type: 'info',
delay: 6500,
}
);
}
}
}
@ -25,7 +31,12 @@
var checked = document.getElementById(role).checked;
$('input[name=' + role +']').bootstrapSwitch('state', false, true);
if (checked){
$.notify("Removed Role '" + DnParentRole + "' (Sub Role of '" + DnRole +"')");
$.notify("Disable Role '" + DnParentRole + "' (Sub Role of '" + DnRole +"')",
{
type: 'warning',
delay: 6500,
}
);
}
}
}