Project

General

Profile

« Previous | Next » 

Revision 614401fd

Added by Amos Benari almost 12 years ago

  • ID 614401fd323acb3e2197f503fa492930e7bb0b32

fixes #1781 - clone host can fail

View differences:

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