git://git.onelab.eu
/
myslice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c241d68
)
Tools tab: Messages can be triggered several times after loading of the page
author
Loic Baron
<loic.baron@lip6.fr>
Thu, 15 Jan 2015 15:12:15 +0000
(16:12 +0100)
committer
Loic Baron
<loic.baron@lip6.fr>
Thu, 15 Jan 2015 15:12:15 +0000
(16:12 +0100)
portal/static/js/myslice-ui.js
patch
|
blob
|
history
diff --git
a/portal/static/js/myslice-ui.js
b/portal/static/js/myslice-ui.js
index
b8b331a
..
bd31f5b
100644
(file)
--- a/
portal/static/js/myslice-ui.js
+++ b/
portal/static/js/myslice-ui.js
@@
-8,9
+8,10
@@
function mysliceAlert(msg, level, timeout) {
var el = $('#myslice-message');
el.find('.message').text(msg);
el.addClass('alert-' + level);
var el = $('#myslice-message');
el.find('.message').text(msg);
el.addClass('alert-' + level);
+ el.fadeIn('fast');
el.parent().fadeIn('fast');
if (timeout) {
el.parent().fadeIn('fast');
if (timeout) {
- setTimeout(function(){el.
alert('close'
);},5000);
+ setTimeout(function(){el.
hide(
);},5000);
}
};
/* Table initialisation */
}
};
/* Table initialisation */
@@
-20,14
+21,9
@@
$(document).ready(function() {
});
var platformParameters = {};
});
var platformParameters = {};
-
- $('#myslice-message').bind('closed.bs.alert', function () {
- $(this).parent().hide();
- });
//mysliceAlert('hello','danger');
//mysliceAlert('hello','danger');
-
$("#objectList").load("/table/resource/", {"fields" : ["hostname","hrn","country","type"], "options": ["checkbox"] }, function(data) {
$(this).dataTable( {
"sScrollY": window.innerHeight - 275,
$("#objectList").load("/table/resource/", {"fields" : ["hostname","hrn","country","type"], "options": ["checkbox"] }, function(data) {
$(this).dataTable( {
"sScrollY": window.innerHeight - 275,