mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
Bug #4100: Fix previous "workaround"
(cherry picked from commit 9272a90505)
This commit is contained in:
1 parent
cc86387331
commit
ba71bee7b3
1 file changed
+13
-3
@@ -1652,9 +1652,19 @@ define(function(require) {
|
||||
$(".provision_cpu_quota_input", context).change();
|
||||
|
||||
// Workaround until hidden Foundation.slider can be initialized
|
||||
setInterval(function() {
|
||||
context.foundation('slider', 'reflow');
|
||||
}, 20);
|
||||
var intervalCounter = 0;
|
||||
var intervalId = setInterval(function() {
|
||||
|
||||
if ($("#provision_create_user_manual_quota", context).is(":visible") ||
|
||||
intervalCounter > 5){
|
||||
|
||||
context.foundation('slider', 'reflow');
|
||||
clearInterval(intervalId);
|
||||
}
|
||||
|
||||
intervalCounter += 1;
|
||||
}, 500);
|
||||
|
||||
});
|
||||
|
||||
$("#provision_create_user").submit(function(){
|
||||
|
||||
Reference in new issue
Block a user