Kristian Lein-Mathisen e1fcb09fa7 Detect dataType from server response in AJAX requests
Previously: if the AJAX query doesn't contain a dataType, we
assume the dataType is "html".

Now: if the AJAX query doesn't contain a dataType, we determine the
dataType from the server's content-type (either "html" or "json").

This is is particularly useful in `modal.load(url)` scenarios and
other places where the response type can be both "html" and "json".
2018-01-12 15:27:46 +01:00
..
2017-12-13 18:24:31 +01:00
2017-12-13 18:24:31 +01:00