X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fstatic%2Fjs%2Fmyslice-ui.js;h=bd31f5be6c3b64bff2464eb0b6b5b33ceb4e29a7;hb=c3a771674a65095ed789c11307925cc627f66fb0;hp=de2ac740bf8a8c74a64f5aea65bab39d04f12218;hpb=d81f5f5ca87b6eba05adb93cd27ac3c9952cc294;p=myslice.git diff --git a/portal/static/js/myslice-ui.js b/portal/static/js/myslice-ui.js index de2ac740..bd31f5be 100644 --- a/portal/static/js/myslice-ui.js +++ b/portal/static/js/myslice-ui.js @@ -8,23 +8,22 @@ function mysliceAlert(msg, level, timeout) { var el = $('#myslice-message'); el.find('.message').text(msg); el.addClass('alert-' + level); + el.fadeIn('fast'); el.parent().fadeIn('fast'); if (timeout) { - setTimeout(function(){el.alert('close');},5000); + setTimeout(function(){el.hide();},5000); } }; /* Table initialisation */ $(document).ready(function() { + $('button[type=submit]').click(function() { + $('form').submit(); + }); var platformParameters = {}; - - $('#myslice-message').bind('closed.bs.alert', function () { - $(this).parent().hide(); - }); //mysliceAlert('hello','danger'); - $("#objectList").load("/table/resource/", {"fields" : ["hostname","hrn","country","type"], "options": ["checkbox"] }, function(data) { $(this).dataTable( { "sScrollY": window.innerHeight - 275,