From 91435d3c4b910dc6f5d53af66ad323fbf109b640 Mon Sep 17 00:00:00 2001 From: Ciro Scognamiglio Date: Tue, 6 May 2014 18:12:54 +0200 Subject: [PATCH] mysliceMessage() js function can be used to display a message --- portal/static/js/myslice-ui.js | 3 +-- portal/templates/_widget-message.html | 4 +++- portal/templates/home-view.html | 2 -- portal/templates/onelab/onelab_widget-topmenu.html | 5 ++++- 4 files changed, 8 insertions(+), 6 deletions(-) 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 @@ -