From aedb1a809b08e940294d6ccc0d6ae8a669a03383 Mon Sep 17 00:00:00 2001 From: Matthias BUSSONNIER Date: Tue, 24 Jul 2012 21:59:21 +0200 Subject: [PATCH] use jquery-ui classes --- .../frontend/html/notebook/static/css/notebook.css | 12 ------------ .../html/notebook/static/js/notificationarea.js | 2 ++ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/IPython/frontend/html/notebook/static/css/notebook.css b/IPython/frontend/html/notebook/static/css/notebook.css index 940e1e75d..d2c267ee0 100644 --- a/IPython/frontend/html/notebook/static/css/notebook.css +++ b/IPython/frontend/html/notebook/static/css/notebook.css @@ -69,18 +69,6 @@ span#notebook_name { z-index: 10; } -.notification.info -{color : darkblue;} - -.notification.safe -{color : darkgreen;} - -.notification.warning -{color : darkorange;} - -.notification.danger -{ color : darkred } - #toolbar { padding: 3px 15px; } diff --git a/IPython/frontend/html/notebook/static/js/notificationarea.js b/IPython/frontend/html/notebook/static/js/notificationarea.js index 9cde83460..8cdd55ddc 100644 --- a/IPython/frontend/html/notebook/static/js/notificationarea.js +++ b/IPython/frontend/html/notebook/static/js/notificationarea.js @@ -23,6 +23,8 @@ var IPython = (function (IPython) { NotificationArea.prototype.temp_message = function (msg, timeout, css_class) { var uuid = utils.uuid(); + if( css_class == 'danger'){css_class = 'ui-state-error'} + if( css_class == 'warning'){css_class = 'ui-state-highlight'} var tdiv = $('
') .attr('id',uuid) .addClass('notification ui-widget ui-widget-content ui-corner-all')