<ahref="https://haproxy-wi.org/services.py?service={{service_link}}#installation"title="{{service_name}} installtion"target="_blank"style="color: #5d9ceb;">Read about installation</a>
varwait_mess='<div class="alert alert-warning">Please don\'t close and don\'t represh page. Wait until the work is completed. This may take some time </div>'
$("#ajax-update").html('<div class="alert alert-warning">Please don\'t close and don\'t represh page. Wait until the work is completed. This may take some time </div>');
toastr.error('It is seems like you Unauthorized in the HAProxy-WI repository. How to get HAProxy-WI auth you can read <a href="https://haproxy-wi.org/installation.py" title="How to get HAProxy-WI auth">hear</a>');
}elseif(data.indexOf('but not installed')!='-1'){
toastr.clear();
toastr.error('You have settings for HAProxy-WI repository, but installed HAProxy-WI without repository. Please reinstall with yum');
}elseif(data.indexOf('No Match for argument')!='-1'){
toastr.clear();
toastr.error('It is seems like you do not have HAProxy-WI repository settings. Please read docs for <a href="https://haproxy-wi.org/updates.py">detail</a>');
}elseif(data.indexOf('password for')!='-1'){
toastr.clear();
toastr.error('It is seems like you need add Apache user to sudoers. Please read docs for<a href="https://haproxy-wi.org/updates.py">detail</a>');
}elseif(data.indexOf('No packages marked for update')!='-1'){
toastr.clear();
toastr.error('It is seems like you have the lastest version HAProxy-WI');
toastr.error('Cannot connect to HAProxy-WI repository. Connection timed out');
}elseif(data.indexOf('--disable')!='-1'){
toastr.clear();
toastr.error('It is seems like you have problem with your repositorys');
}elseif(data.indexOf('Unauthorized')!='-1'){
toastr.clear();
toastr.error('It is seems like you Unauthorized in the HAProxy-WI repository');
}elseif(data.indexOf('Error: Package')!='-1'){
toastr.clear();
toastr.error(data);
}elseif(data.indexOf('conflicts with file from')!='-1'){
toastr.clear();
toastr.error(data);
}
}
});
});
$('#add-group-button').click(function(){
addGroupDialog.dialog('open');
});
@ -1958,4 +1906,54 @@ function ajaxActionServies(action, service) {
alert(w.data_error);
}
});
}
functionupdateService(service){
$("#ajax-update").html('')
$("#ajax-update").html('<div class="alert alert-warning">Please don\'t close and don\'t represh page. Wait until the work is completed. This may take some time </div>');
toastr.error('It is seems like you Unauthorized in the HAProxy-WI repository. How to get HAProxy-WI auth you can read <a href="https://haproxy-wi.org/installation.py" title="How to get HAProxy-WI auth">hear</a>');
}elseif(data.indexOf('but not installed')!='-1'){
toastr.clear();
toastr.error('You have settings for HAProxy-WI repository, but installed HAProxy-WI without repository. Please reinstall with yum');
}elseif(data.indexOf('No Match for argument')!='-1'){
toastr.clear();
toastr.error('It is seems like you do not have HAProxy-WI repository settings. Please read docs for <a href="https://haproxy-wi.org/updates.py">detail</a>');
}elseif(data.indexOf('password for')!='-1'){
toastr.clear();
toastr.error('It is seems like you need add Apache user to sudoers. Please read docs for<a href="https://haproxy-wi.org/updates.py">detail</a>');
}elseif(data.indexOf('No packages marked for update')!='-1'){
toastr.clear();
toastr.info('It is seems like you have the lastest version HAProxy-WI');