Revision 68c7bed0
Added by Amos Benari almost 12 years ago
- ID 68c7bed0891730f5d7b5c1915b307bc0cf9ca435
public/javascripts/host_edit.js | ||
---|---|---|
var stop_pooling;
|
||
|
||
function submit_host(form){
|
||
var url = window.location.pathname.replace(/\/edit|\/new/,'');
|
||
var url = window.location.pathname.replace(/\/edit$|\/new$/,'');
|
||
if(/\/clone$/.test(window.location.pathname)){ url = '/hosts'; }
|
||
$('#host_submit').attr('disabled', true);
|
||
stop_pooling = false;
|
||
$("body").css("cursor", "progress");
|
Also available in: Unified diff
fixes #1781 - clone host can fail