1f4ba0156a
remove (unused) etemplate2 import causing login page to constantly reload
2021-06-11 09:11:28 +02:00
e18832e110
defer calls to app.* after et2_load is finished
...
changing et2_load egw_json plugin to return a promise for that
2021-06-11 09:05:57 +02:00
bfea641321
fix async loading caused app.js not being loaded before et2.load() tried to instantiate it
2021-06-08 17:13:30 +02:00
592b7fb97d
replace LAB.js with native es5 loading
2021-06-05 20:39:39 +02:00
46c4e0e118
add daily cache-buster to client-side included app.js files for applyFunc
2021-03-12 11:23:26 +02:00
d2626085f6
fix wrong context causing eg. attachments to mail to no longer work
2021-03-08 21:20:11 +02:00
58ae23c74c
allow "app.<appname>.<method>" in link registry and use it to open CRM view
2021-03-04 11:50:13 +02:00
7a060b205b
not overwriting call and apply method of egw function/object using callFunc and applyFunc instead, fixes several problems
2021-03-02 12:16:47 +02:00
e36c6c4cec
move global et2_call function to egw.call and egw.apply methods, ensuring app.js is loaded, if not yet loaded, also using that as apply plugin for egw.json
2021-03-01 11:50:41 +02:00
086771ee66
try to fix race-condition in reconnecting a "lost" websocket connection
2020-10-27 14:19:25 +01:00
82d7a103a9
try to fix race-condition in reconnecting a "lost" websocket connection
2020-10-27 14:16:11 +01:00
38ff63f778
Api: New JavaScript API method egw.request(menuaction : string, parameters : any[]) : Promise
...
Does an AJAX request, and resolves the returned Promise with just the data (no piggybacks) when it arrives from the server. Any registered data handlers are run before resolving the Promise.
2020-10-16 10:33:13 -06:00
1ef16c9c55
closing websocket explicit, before reopening it, to not end up with multiple connections and doublicated messages
2020-10-15 18:17:31 +02:00
663816769e
fix TypeError this.openWebSocket() is not a function
2020-10-14 22:28:32 +02:00
313a378539
* Swoolepush: periodically pinging server from browser to detect lost websocket connection and reconnect
2020-10-14 20:16:13 +02:00
7db25dce5e
* Admin: push server test to diagnose problems and improved recovery from failed requests / network problems
2020-10-02 20:28:02 +02:00
9817d25a47
move who is available via push to push class and backends
2020-04-20 13:07:58 +02:00
65294a3e19
fix error on window closing in Chrome 80+
...
caused by Chrome 80+ no longer allowing to send a synchronious ajax request from beforeunload handler, using sendBeacon (async request with keepalive=true) instead
2020-03-02 10:43:19 +01:00
bf844b7598
support for new Swoole push server
2019-11-04 09:29:49 +01:00
72cad447b0
Do not check jsonp since we are not using it and it might cause errors by setting dataType to script falsely
2019-02-20 13:24:43 +01:00
b16e93bfe3
Make sure we have a match before using it
2019-02-20 10:41:04 +01:00
5531844c0d
use correct window of includeJS and alert, also fixed in wrong order included first JS file
2019-01-15 14:34:52 +01:00
2f1333a116
return and show in browser JSON parsing errors maybe caused by network problems
...
server sends HTTP status "400 Bad Request" with JSON payload with "error" and "errno" attributes.
error is json_last_error_msg() prefixed with "JSON ".
Not yet implemented is resending the request (max. twice) for JSON parsing errors to try to work around network problems
2018-11-01 12:00:08 +01:00
970fb80675
Respect async flag with set false value
2018-10-11 14:14:21 +02:00
cceba01f87
Change default value for async json_request to true
2018-10-04 17:48:13 +02:00
bbe551d4cc
sending appliction/json aka JSON as direct payload for all POST ajax requests
...
instead of additionally encoding them as form-data
2018-08-16 11:07:50 +02:00
430368eab9
new JSON response method "message" to call egw.message eg. in a popup, by using the context from the egw.json call
2018-06-05 12:29:51 +02:00
96caf6effd
* Admin/APC(u): fix error in clear cache: if APC(u) runs out of memory clearing just instance cache clear whole cache
2016-07-28 12:02:21 +02:00
58d2e49843
fix two more cases in which "show_generation_time" is queried and should never trigger a request to server, see 1c6c930312
2016-07-21 10:51:17 +02:00
45111b8cd9
if "common" prefs are not loaded, do not display page generation time
...
Before we queried page_generation_time common preference without a callback, which send a synchronious request to server to fetch common preferences, when it returned it looked for the preference again and send the next synchronious request to the server, in an infinit loop. Now setting _callback parameter of egw.preference() to false, just returns undefined, if common preferences are not yet loaded, but dont try to query them from server
2016-07-20 17:15:41 +02:00
1fcbb03153
Evaluate show_generation_time preference value before calling for pageGenTime
2016-07-15 17:25:07 +02:00
9d054b9437
Fix asyncIncludetime in genPageTime repeats itself into DOM instead of updating the value
2016-07-15 09:35:02 +02:00
eba29d3541
Create DOM node for pageGenTime data
2016-07-14 17:21:51 +02:00
82c4eecfa3
change wording of error message on server-side ajax requests
2016-06-28 20:40:11 +02:00
93217a149d
jQuery libraries updates via composer
2016-06-06 17:38:20 +02:00
87fb94a496
Deprecate $j global variable and replace them all with standard jQuery
2016-06-02 16:52:01 +02:00
2e3bd32721
moving all - non ancient ;-) - js files to api/js
2016-04-07 10:38:05 +00:00