//---------------------------------------------------------------------------- // Copyright (C) 2012 The IPython Development Team // // Distributed under the terms of the BSD License. The full license is in // the file COPYING, distributed as part of this software. //---------------------------------------------------------------------------- //============================================================================ // Notification widget //============================================================================ var IPython = (function (IPython) { "use strict"; var utils = IPython.utils; var NotificationArea = function (selector) { this.selector = selector; if (this.selector !== undefined) { this.element = $(selector); } }; 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 = $('