From: Scott Baker Date: Thu, 22 May 2014 00:53:11 +0000 (-0700) Subject: errorDialog function X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=e34e67d4e561f041f6a9087d1330d73e19a02fd7;p=plstackapi.git errorDialog function --- diff --git a/planetstack/templates/admin/dashboard/dashboard_base.html b/planetstack/templates/admin/dashboard/dashboard_base.html index 2443bbb..8e86b11 100644 --- a/planetstack/templates/admin/dashboard/dashboard_base.html +++ b/planetstack/templates/admin/dashboard/dashboard_base.html @@ -62,6 +62,29 @@ function confirmDialog(title,msg) { return def.promise(); } +function errorDialog(title,msg) { + var dialog = $('
'+msg+'
'); + var def = $.Deferred(); + + $(dialog).dialog({ + resizable: false, + title: title, + autoOpen: true, + modal: true, + dialogClass: "dashboard-hpc-sliver", + buttons: { + 'OK': function() { + def.resolve(); + log.debug("Chose to add a sliver"); + $( this ).dialog( "close" ); + }, + }, + close: { + } + }); + return def.promise(); +} + {% endblock %}