kodai/jqzabbix — pull request #1 by dmiyakawa (2014-05-27 09:16:34+00:00)
Title: Allow error callback handle login failure case.

If userLogin() contains a wrong password,
jquery itself will call its success callback
containing "error" in response (jqzabbix.js L95).

In that case neither jqzabbix's success callback or
its error callback will be called.

To avoid this problem, current the jqzabbix user
needs to rely on its complete callback, checking
jqzabbix's errormsg variable everytime,
which seems nasty.

Allow me to just rely on error callback,
because it is actually an error from Zabbix API
perspective.