Revision 81151cb7
Added by Amos Benari almost 11 years ago
- ID 81151cb709ff70b7f0cc507ba13f2ece2f93b2d5
app/assets/javascripts/application.js | ||
---|---|---|
hostgroup_id = $("#host_hostgroup_id :selected").attr("value");
|
||
build = $('input:radio[name$="[provision_method]"]:checked').val();
|
||
|
||
$(div).html('<img src="/assets/spinner.gif" alt="Wait" />');
|
||
$(div).html(spinner_placeholder());
|
||
$(div).load(url + "?operatingsystem_id=" + os_id + "&hostgroup_id=" + hostgroup_id + "&environment_id=" + env_id+"&provisioning="+build,
|
||
function(response, status, xhr) {
|
||
if (status == "error") {
|
||
... | ... | |
$(document).ready(function() {
|
||
var common_settings = {
|
||
method : 'PUT',
|
||
indicator : "<img src='/assets/spinner.gif' />",
|
||
indicator : spinner_placeholder(),
|
||
tooltip : _('Click to edit..'),
|
||
placeholder : _('Click to edit..'),
|
||
submitdata : {authenticity_token: AUTH_TOKEN, format : "json"},
|
||
... | ... | |
$.fn.indicator_hide = function(){
|
||
$(this).parent().find('img').hide();
|
||
}
|
||
|
||
function spinner_placeholder(text){
|
||
if (text == undefined) text = "";
|
||
return "<div class='spinner-placeholder'>" + text + "</div>"
|
||
}
|
Also available in: Unified diff
fixes #2646 Asset icon URLs are incorrect when under a different base URL
(cherry picked from commit 1546388e9c82f6382be1ec35738489e8c9458c69)