Commit a8f5c434 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4475 (Fix issues with Commandr command history)

parent a0096a87
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -56,6 +56,8 @@ function commandr_handle_history(element,key_code,e)
// Submit an Commandr command
function commandr_form_submission(command,form)
{
	window.current_command=null;

	// Catch the data being submitted by the form, and send it through XMLHttpRequest if possible. Stop the form submission if this is achieved.
	// var command=document.getElementById('commandr_command').value;

@@ -78,7 +80,9 @@ function commandr_form_submission(command,form)
				window.disable_timeout=null;
			}
		} , 5000);
		if ((command.indexOf("\n")==-1) && ((window.previous_commands.length==0) || (window.previous_commands[window.previous_commands.length-1]!=command))) {
			window.previous_commands.push(command);
		}

		return false;
	} else if (typeof form!='undefined')