Spinner in Management page
[myslice.git] / portal / static / js / myslice-ui.js
index de2ac74..bd31f5b 100644 (file)
@@ -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,