luci-base: extend xhr.js
authorJo-Philipp Wich <jo@mein.io>
Thu, 26 Apr 2018 07:39:22 +0000 (09:39 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 26 Apr 2018 07:40:17 +0000 (09:40 +0200)
commitaa6c97154e83c388f89274c4eb3f4c518fb8aac4
tree3aa98eea4ea1b69d30cbe87cf7aaf3dc4f491f53
parent65479e3236afecfc8efa51fbcd831927e1ce8c56
luci-base: extend xhr.js

Add timeout options to get() and post() and introduce XHR.stop() to support
stopping a poll operation.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/xhr.js