mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-27 03:21:29 +03:00
Bug #4100: Fix previous "workaround"
This commit is contained in:
parent
bcf061f1ec
commit
9272a90505
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user