From: Ciro Scognamiglio Date: Tue, 6 May 2014 16:12:54 +0000 (+0200) Subject: mysliceMessage() js function can be used to display a message X-Git-Tag: myslice-1.1~115 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=91435d3c4b910dc6f5d53af66ad323fbf109b640;p=unfold.git mysliceMessage() js function can be used to display a message --- diff --git a/portal/static/js/myslice-ui.js b/portal/static/js/myslice-ui.js index 060269a8..4d06895e 100644 --- a/portal/static/js/myslice-ui.js +++ b/portal/static/js/myslice-ui.js @@ -7,7 +7,7 @@ function mysliceAlert(msg, level) { var el = $('#myslice-message'); el.find('.message').text(msg); el.addClass('alert-' + level); - el.fadeIn('fast'); + el.parent().fadeIn('fast'); }; /* Table initialisation */ $(document).ready(function() { @@ -17,7 +17,6 @@ $(document).ready(function() { - $("#objectList").load("/table/resource/", {"fields" : ["hostname","hrn","country","type"], "options": ["checkbox"] }, function(data) { $(this).dataTable( { "sScrollY": window.innerHeight - 275, diff --git a/portal/templates/_widget-message.html b/portal/templates/_widget-message.html index 5985f9a2..8ffad257 100644 --- a/portal/templates/_widget-message.html +++ b/portal/templates/_widget-message.html @@ -1,5 +1,7 @@ -