luci/modules/luci-base/htdocs/luci-static/resources
Giovanni Giacobbi 763158600a
luci-base: luci.js: fix LuCI.request.poll.add() exception handling
The try/catch is meant for the `res.json()` call and should apply to that. As it was before, an exception inside the poll callback would cause the callback to be reinvoked without the JSON parameter, which is an odd behaviour. Moreover, it makes it hard to debug because it is completely hidden from the browser console. We now differentiate between exceptions thrown due to bad JSON in `responseText` from exceptions generated inside the callback itself, which are let through for browser console logging.

Signed-off-by: Giovanni Giacobbi <giovanni@giacobbi.net>
2021-01-19 22:46:25 +01:00
..
cbi luci-base: move old cbi icons to luci-compat 2020-05-07 19:40:29 +02:00
icons luci-base: optimize some PNG files 2020-05-07 20:05:52 +02:00
protocol luci-base: make translatable default values for dhcp hostname 2020-09-19 08:31:48 +03:00
tools Merge pull request #4598 from Ansuel/wifi_chan 2021-01-07 19:02:57 +02:00
cbi.js treewide: transition div tables to actual table markup 2020-11-27 21:36:40 +01:00
firewall.js luci-base: generalize random color generation 2020-11-18 00:48:16 +01:00
form.js luci-base: make tooltip icon string configurable 2021-01-13 12:29:02 +01:00
fs.js luci-base: harmonize JS class naming and requesting 2020-04-02 21:51:20 +02:00
luci.js luci-base: luci.js: fix LuCI.request.poll.add() exception handling 2021-01-19 22:46:25 +01:00
network.js luci-base: network.js: Show clients also from wifi VLANs. 2020-10-06 13:30:47 +02:00
promis.min.js luci-base: add ES6 Promise polyfill for IE < Edge 2019-07-07 15:25:49 +02:00
rpc.js luci-base: don't append object.method to the RPC url 2020-09-23 16:54:18 +02:00
uci.js luci-base: uci.js: fix option deletion quirks 2020-08-04 18:55:21 +02:00
ui.js luci-base: make tooltip icon string configurable 2021-01-13 12:29:02 +01:00
validation.js Merge pull request #4053 from TDT-AG/pr/20200515-luci-base 2020-05-19 14:06:07 +02:00
xhr.js luci-base: luci.js: add HTTP request functions 2019-07-07 15:25:49 +02:00