Commit eb76ce68 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Corrige consultas vacías en buscador de Worms

Permite limpiar el listado de resultados e impide mandar consultas
vacías al backend, impidiendo que se produzca el error.

Fix #22.
parent a360254d
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -121,9 +121,12 @@ define([
			}

			var value = obj.text,
				target = this.baseTarget,
				requestObj = {},
				evt = 'REQUEST';
				target = this.baseTarget;

			if (!value.length) {
				this._publish(this.browser.getChannel("CLEAR"));
				return;
			}

			if (value == parseInt(value, 10)) {
				target += "/" + value;
@@ -133,7 +136,7 @@ define([

			this.target = target;

			this._emitEvt('REQUEST', this._getRequestObj(requestObj));
			this._emitEvt('REQUEST', this._getRequestObj({}));
		},

		_getRequestObj: function(request) {
Compare eba01ad1 to eeafa749
Original line number Diff line number Diff line
Subproject commit eba01ad16bec1465dc47d0ffc92f7a5b6452da72
Subproject commit eeafa74992f2f189b8b85051d0313ffb473f3971