basic messages: /message, /success, /error, /warning
Esse commit está contido em:
@@ -12,6 +12,32 @@
|
||||
$(document).toggleFullScreen();
|
||||
return false;
|
||||
});
|
||||
|
||||
// Basic socket messages
|
||||
this.socket.on('/message', function(data) {
|
||||
$.notifyBar({
|
||||
html : JSON.stringify(data)
|
||||
});
|
||||
});
|
||||
this.socket.on('/success', function(data) {
|
||||
$.notifyBar({
|
||||
cssClass : "success",
|
||||
html : 'Success : ' + JSON.stringify(data)
|
||||
});
|
||||
});
|
||||
this.socket.on('/warning', function(data) {
|
||||
$.notifyBar({
|
||||
cssClass : "warning",
|
||||
html : JSON.stringify(data)
|
||||
});
|
||||
});
|
||||
this.socket.on('/error', function(e) {
|
||||
$.notifyBar({
|
||||
cssClass : "error",
|
||||
html : 'Error : ' + JSON.stringify(e)
|
||||
});
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
Cockpit.prototype.loadPlugins = function loadPlugins() {
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário