Commit Graph

7714 Commits

Author SHA1 Message Date
Ralf Becker
0bb8093426 fixed translations on client-side: server sends now currentapp and langRequire to client, which uses that to translate phrases, langRequire is only stored in egw object for matching app-name and window! 2013-10-07 17:00:03 +00:00
Ralf Becker
a6311fa1a3 creating and using an app-specific egw object 2013-10-07 16:53:13 +00:00
Nathan Gray
746e6ea193 Also accept just the window name to windowClosed(), as sometimes window.name is not available anymore. 2013-10-07 11:20:47 +00:00
Nathan Gray
57c412bd47 Slightly more robust popup handling.
It's still not possible to completely track them, but it's a little better.
2013-10-07 10:09:08 +00:00
Nathan Gray
3ca2448f94 Make storage api global 2013-10-07 10:08:24 +00:00
Ralf Becker
ffc506561a * API: fixed not working session encryption, by switch back to previous MCrypt algorithm and mode 2013-10-07 07:22:50 +00:00
Ralf Becker
72c350f76d * API: fixed not working session encryption, by switch back to previous MCrypt algorithm and mode 2013-10-07 07:22:21 +00:00
Ralf Becker
43e1bfcc12 switching on Content-Security-Policy: script-src 'self' 'unsafe-eval' for all templates, old non-et2 apps can call egw_framework::csp_script_src_attrs('unsafe-inline') to enable inline scripts in their scope, et2 does it for CK editor which does not support CSP currently and old etemplate does it for all apps using it 2013-10-05 13:33:28 +00:00
Nathan Gray
8a7ffaa182 Restore accidentally removed return of popup window 2013-10-05 09:38:22 +00:00
Nathan Gray
893648e189 Add the ability to track named popups opened using egw.open() or egw.open_link(). Unnamed popups or those opened in other ways are not tracked. You can get the list using egw.getOpenWindows(app, regex_filter), which returns a list of names.
Also, a wrapper around session storage.
2013-10-05 09:28:12 +00:00
Ralf Becker
b4accbbcb5 idots now also automatic resizes its application area like Stylite template, so eg. et2 nextmatch can fill full area 2013-10-04 11:58:13 +00:00
Ralf Becker
65223eb80a when displaying topmenu in sidebox as "General menu", use same code to display new topmenu items too 2013-10-04 11:56:47 +00:00
Ralf Becker
59f264ada4 do NOT require enabled=true for (enable|disable)Class or enableId attribute to work 2013-10-04 11:18:50 +00:00
Nathan Gray
282fb76cb6 Improve error message 2013-10-04 09:40:35 +00:00
Ralf Becker
2f39c7b4dd fixed not working preferences under idots template 2013-10-03 15:54:19 +00:00
Ralf Becker
dad39e1d8a moved all confirmation to api egw_actions and changed select_all to depend on all visible rows selected (Ctrl-A) 2013-10-03 15:30:27 +00:00
Ralf Becker
66db293a67 missing commit for new preferences 2013-10-03 15:17:14 +00:00
Ralf Becker
f8a0db06fc completly remove preferences menu from sidebox and tiled preferences index in favoir of app-sensitive entries in top-menu 2013-10-03 09:23:18 +00:00
Ralf Becker
6f162f144e add context sensitive link to ACL/grant access to top-menu, same is to be happen for cats and preferences itself and preferences in sidebox will be removed 2013-10-02 16:29:08 +00:00
Ralf Becker
7cf6500f92 docu update 2013-10-02 10:33:44 +00:00
Ralf Becker
2d88f9db75 full implementation of draft-murchison-webdav-prefer-05, incl. return=representation for 412 conflicts 2013-10-01 10:55:44 +00:00
Ralf Becker
53880e2063 to mitigate html download with CSP: no blacklisting just IE, only whitelist tested browsers and versions 2013-10-01 09:50:23 +00:00
Ralf Becker
d49c460c5f to mitigate html download with CSP: no blacklisting just IE, only whitelist tested browsers and versions 2013-10-01 09:49:06 +00:00
Nathan Gray
28c2737c9f Change multi-select header styling:
- Change icons from jQueryUI to egw
- Stop hiding header when not needed, always show
- Don't visually distinguish header
- Don't float right icons, leave them between checkbox and label
2013-09-30 15:39:36 +00:00
Nathan Gray
756b3d3380 Fix app-level redirect affects whole page 2013-09-30 12:34:45 +00:00
Ralf Becker
bc9c486e03 some small fixes to get through a view more tests for managed attachments 2013-09-25 12:37:42 +00:00
Ralf Becker
d4c2ed3f65 stop CalDAVTester from creating one log per test-step 2013-09-25 07:46:02 +00:00
Ralf Becker
ba73deee9f fixed typo in ATTACH property "FMTTYP(E)" and added xml error bodys for wrong managed-id parameter (more to follow) 2013-09-25 07:11:27 +00:00
Ralf Becker
86649cd1e1 full implementation of draft-murchison-webdav-prefer-05, incl. return=representation for 412 conflicts 2013-09-25 07:09:44 +00:00
Ralf Becker
0601d40bd3 fix Prefer header to use return=(minimal|representation) instead of older draft dash, enable add-member property, and add Location header to action=attachment-add 2013-09-24 12:29:17 +00:00
Klaus Leithoff
45326fa484 on async job write, make sure that possible next attribute in data is in sync with job[next] 2013-09-24 10:22:03 +00:00
Klaus Leithoff
367651a8d1 on async job write, make sure that possible next attribute in data is in sync with job[next] 2013-09-24 10:21:46 +00:00
Ralf Becker
edd4cc49ca basic managed attachment support, tested with iCal from OS X mountain lion 2013-09-23 13:39:28 +00:00
Ralf Becker
1752f7defd basic managed attachment support, tested with iCal from OS X mountain lion 2013-09-23 10:21:31 +00:00
Klaus Leithoff
0bc9b1357c change convertHTMLToText behavior, regarding the replacing of CRLF or LF to single space; now removing them completely, when text to be processed is regarded to be html 2013-09-18 12:16:06 +00:00
Klaus Leithoff
5e425398fa change convertHTMLToText behavior, regarding the replacing of CRLF or LF to single space; now removing them completely, when text to be processed is regarded to be html 2013-09-18 12:14:59 +00:00
Nathan Gray
07b311d495 Enhance error message to actually include the original error message 2013-09-17 20:17:20 +00:00
Nathan Gray
6fd5e50d60 Use a two step process to force an absolute URL, in case server settings have full URL 2013-09-17 15:34:39 +00:00
Nathan Gray
68b1178657 Undefined needs quotes. 2013-09-16 14:35:55 +00:00
Ralf Becker
5faeec4ad5 mitigate risk of html downloads by using Content-Security-Policy header or Content-Disposition: attachment for IE 2013-09-12 18:49:36 +00:00
Ralf Becker
b8341e48a1 mitigate risk of html downloads by using Content-Security-Policy header or Content-Disposition: attachment for IE 2013-09-12 18:49:07 +00:00
Ralf Becker
860c5f3974 removed not used assignment 2013-09-12 08:32:40 +00:00
Ralf Becker
9523ba79c2 removed not used assignment 2013-09-12 08:31:10 +00:00
Ralf Becker
1bd42263b6 update from 1.8.005 2013-09-11 16:32:11 +00:00
Ralf Becker
d26cfed93a update from 1.8.005 2013-09-11 16:30:05 +00:00
Nathan Gray
b4007621f7 When applying (call a function) call it on the request window, not current - they may be different 2013-09-11 15:52:49 +00:00
Ralf Becker
3c160e5062 use secure and httponly cookies by default, secure cookies can be switched off in Admin >> site configuration, if required for sitemgr 2013-09-11 13:06:27 +00:00
Ralf Becker
855c04cb2c use secure and httponly cookies by default, secure cookies can be switched off in Admin >> site configuration, if required for sitemgr 2013-09-11 13:06:00 +00:00
Ralf Becker
eeb679b59a setup uses now sessions too and password-hashes in header.inc.php use most secure hashing type 2013-09-11 11:36:24 +00:00
Ralf Becker
eb06a2adee setup uses now sessions too and password-hashes in header.inc.php use most secure hashing type 2013-09-11 11:35:20 +00:00
Nathan Gray
958167b0f7 Add an optional async parameter to sendRequest() to make simple async calls easier 2013-09-10 20:22:47 +00:00
Nathan Gray
8ca7b57715 Start giving some deprecated warnings so we can start the process of removing this file 2013-09-10 19:39:20 +00:00
Ralf Becker
892500fee3 change cli detection to use php_sapi_name() 2013-09-10 17:29:58 +00:00
Nathan Gray
b3806e3e8e Add child action visbile/enabled checking - previously children were always enabled 2013-09-09 15:01:54 +00:00
Ralf Becker
1590d02816 new egw_framework::message($msg, $msg_type="success") method and fixing nextmatch filter-change to return app-header 2013-09-05 11:53:25 +00:00
Nathan Gray
eef2235f2e Merge egw_jsons - change jsonq to use egw.json() 2013-09-04 22:01:33 +00:00
Nathan Gray
467734258c Merge egw_jsons - change preferences to use egw.json() 2013-09-04 21:51:08 +00:00
Nathan Gray
72e5c43a96 Add child action visbile/enabled checking - previously children were always enabled 2013-09-04 19:09:48 +00:00
Ralf Becker
1f8e0e9e41 global method egw_message(_msg, _type) to display success-, warning- or error-messages in app-header 2013-09-04 19:02:34 +00:00
Ralf Becker
fde4d9df99 silence warning be defining the constants 2013-09-02 13:41:03 +00:00
Ralf Becker
aaf0a7491d silence warning be defining the constants 2013-09-02 13:40:40 +00:00
Ralf Becker
e2cce43bad fixed not working _self target 2013-09-02 13:25:00 +00:00
Ralf Becker
b958240a94 * EMail/all apps: fixed notifications caused EMail to loose connection to IMAP server
- temporary switch of user-enviroment as not fully restored and caused email connection of notified user being tried
- bo_tracking::send_notification does not all switching and is save to used without do_notifications
- references to $GLOBALS[egw_info][user] are now removed, because they also stopped correctly switching user enviroments for notifications
2013-09-02 12:14:08 +00:00
Klaus Leithoff
d5c2a03f51 revert changes introduced with r43681, as issue is fixed in bo_tracking and handling of GLOBALS[info][user][account_id] 2013-09-02 11:34:38 +00:00
Ralf Becker
3d20422177 not creating references to ['egw_info']['user'], as bo_tracking and other async service stuff has problems to change between different user enviroments 2013-09-02 10:43:16 +00:00
Klaus Leithoff
7744905ba8 try to resolve a use-session-stored-data related problem; make sure account_id and prefs are restored after send_notification 2013-08-30 12:57:51 +00:00
Klaus Leithoff
5299db0f05 add (and use) preg replace callback for mailto link to text transformation 2013-08-29 10:40:11 +00:00
Klaus Leithoff
f5e00e4bad add (and use) preg replace callback for mailto link to text transformation 2013-08-29 10:39:08 +00:00
Nathan Gray
eb989ed98b Hold Ctrl key to drag a file from filemanager to system folder / desktop
Restricted to Chrome only, one file at a time, folders don't work well.
This uses Chrome-only DownloadURL, so other browser support is unlikely.
2013-08-28 22:31:14 +00:00
Ralf Becker
a9a8e65ece new parameter to be able to use get_user_applications() in admin and class-constants for ACL-rights, can be used instead EGW_ACL_* defines 2013-08-28 13:27:53 +00:00
Ralf Becker
ccab8e0ac1 fix alert("1"), caused by data-window-close being a string 2013-08-27 16:49:57 +00:00
Klaus Leithoff
0e89d4c1a0 commit some french lang file stuff; provided by Thomas Chaillot, Spirea 2013-08-27 08:55:37 +00:00
Klaus Leithoff
a4cf6874e2 commit some french lang file stuff; provided by Thomas Chaillot, Spirea 2013-08-27 08:54:05 +00:00
Ralf Becker
db7d12af4b first take on new ACL dialog for admin 2013-08-26 18:25:43 +00:00
Ralf Becker
aa8a848871 optional parameter for egw_framework::window_close() to specify an alert message, which get shown/alerted, before closing the window 2013-08-26 10:24:11 +00:00
Klaus Leithoff
ed08b9612e commit some lang file stuff; mostly french 2013-08-26 09:41:02 +00:00
Ralf Becker
0de6ab1b35 fix not working timesheet status and category actions: "disableClass", "enableClass" and "enableId" are now handled by action system itself, one should not set an explicit "enabled" attribute anymore 2013-08-26 08:24:50 +00:00
Ralf Becker
0984527661 let old eTemplate run its own confirmation from nextmatch_action.js 2013-08-26 07:36:51 +00:00
Ralf Becker
6fbfb6c784 propset svn:keywords 2013-08-26 07:36:19 +00:00
Ralf Becker
46f81649eb also fix calls to deprecated ajaxResponse class to use egw_json_response singleton, should be fixed in code for current apps 2013-08-25 15:14:19 +00:00
Ralf Becker
38798b872d Force use of singleton: $response = egw_json_response::get(); not using it causes response being wrapped in an other response 2013-08-25 12:42:55 +00:00
Ralf Becker
b2ba685edd remove inline javascript from idots and jerryr templates 2013-08-21 20:22:53 +00:00
Nathan Gray
1d9589db99 If et2 object changes, we need the new one, not reject. 2013-08-20 23:20:56 +00:00
Nathan Gray
dca0c40418 Promote some useful common functionality to the app.js parent class 2013-08-20 19:20:10 +00:00
Nathan Gray
dba3bcc2aa Update timepicker, some work on date-timeonly so it returns a value 2013-08-20 18:37:09 +00:00
Ralf Becker
b5ca4ac505 fixed jdots/Stylite template to contain no more inline scripts 2013-08-20 18:01:49 +00:00
Ralf Becker
73aa652c41 missing egw.js from last commit and egw_framework::window_focus() method 2013-08-20 13:25:36 +00:00
Ralf Becker
1c4f65120c new egw_framework methods refresh_opener and window_close to call egw_refresh on opener or close popup window in a content security save way 2013-08-20 12:06:41 +00:00
Ralf Becker
8b8faba28c some docu and jsdoc tags to show the outline 2013-08-20 07:06:59 +00:00
Nathan Gray
ba80841c5e Add some comments and a warning if action string can't be parsed to a function 2013-08-19 17:41:16 +00:00
Klaus Leithoff
95e18fd5a7 merge russian lang files provided by MBCGroup 2013-08-16 11:01:33 +00:00
Klaus Leithoff
1ddfe74487 merge russian lang files provided by MBCGroup 2013-08-16 11:01:25 +00:00
Ralf Becker
cf25e7bae0 get Eclipse to display outline 2013-08-16 09:16:40 +00:00
Ralf Becker
ec6d873941 let PHP Warnings look exactly like original ones, but with a backtrace 2013-08-15 10:15:13 +00:00
Klaus Leithoff
7998d2d53a * CKEditor/ASpell: hardening of jscode for IE10, as spellCheckerWin object may not be defined 2013-08-14 09:35:48 +00:00
Klaus Leithoff
12402514b9 * CKEditor/ASpell: hardening of jscode for IE10, as spellCheckerWin object may not be defined 2013-08-14 09:35:03 +00:00
Klaus Leithoff
0a11b27043 upgrade to version 4.1.3 2013-08-14 08:54:52 +00:00
Ralf Becker
c806da58ce give a trace for PHP (User) Warnings 2013-08-14 08:09:51 +00:00
Klaus Leithoff
0a08bfc2f2 handle smtp reset on phpmailerclass, as this class throws exceptions; preserve the error info from smtp class before resetting the smtp communication 2013-08-07 09:23:22 +00:00
Klaus Leithoff
27149b237f play around with catching the smtp error of smtp class, as it is the one that has the info about the error 2013-08-07 09:20:16 +00:00
Klaus Leithoff
a7be5a026e move reset-call of smtp to phpmailer class, as it is the one that throws exceptions, and stops action 2013-08-07 08:34:00 +00:00
Ralf Becker
118657ddee using etemplate_new::ajax_proecess_content to allow to have etemplate still extend etemplate_old, making etemplate_new autoloadable 2013-08-06 18:24:30 +00:00
Klaus Leithoff
37a810e6a4 send reset command after failure while failing when adding addresses 2013-08-06 13:52:27 +00:00
Klaus Leithoff
54b2596ff8 send reset command after failure while failing when adding addresses 2013-08-06 13:51:39 +00:00
Ralf Becker
48fd2113f3 some long running operations, eg. merge-print, run into situation that DB closes our separate sqlfs connection, we try now to reconnect once 2013-08-05 14:59:31 +00:00
Ralf Becker
c20bb4df6b using correct case: To, Cc and Bcc 2013-08-05 14:57:03 +00:00
Ralf Becker
0f37c16cd8 using correct case: To, Cc and Bcc 2013-08-05 14:56:39 +00:00
Klaus Leithoff
202d40d517 ClearAllRecipients should only clear recipients, not From, ReplyTo and such 2013-08-05 13:47:51 +00:00
Klaus Leithoff
d22f24666b ClearAllRecipients should only clear recipients, not From, ReplyTo and such 2013-08-05 13:44:44 +00:00
Ralf Becker
86262dea0f fixed 2 typos 2013-08-05 12:58:41 +00:00
Ralf Becker
e9bf6d69e1 some long running operations, eg. merge-print, run into situation that DB closes our separate sqlfs connection, we try now to reconnect once 2013-08-05 09:47:16 +00:00
Ralf Becker
57634dc01f need to reimplement Clear methods from parent, to also clear our private addresses 2013-08-05 08:47:19 +00:00
Ralf Becker
243bb169a2 need to reimplement Clear methods from parent, to also clear our private addresses 2013-08-05 08:46:29 +00:00
Ralf Becker
6fe4085a11 fixed wrong condition only giving a location header if requests fails, not if it succeeds 2013-08-02 19:28:38 +00:00
Ralf Becker
188328b1d0 fixed wrong condition only giving a location header if requests fails, not if it succeeds 2013-08-02 19:27:35 +00:00
Ralf Becker
207b7de248 instead of sending nothing, which gives a parse error on client-side, send a valid, empty response 2013-08-01 12:28:28 +00:00
Ralf Becker
6f39b0618d using dhtmlxtree from sources instead of codebase directory, as does et2_widget_tree, to not double load it and causing 2. load to overwrite extensions from 1. 2013-08-01 11:19:14 +00:00
Ralf Becker
3afd9aaa18 check if quick-add selectbox is alread there, only create it again if not 2013-08-01 09:54:09 +00:00
Ralf Becker
c65130d714 * Admin/Filemanager: added filesystem check and repair for missing or broken required directories /, /apps and /home 2013-08-01 07:53:58 +00:00
Ralf Becker
05765db6ca * Admin/Filemanager: added filesystem check and repair for missing or broken required directories /, /apps and /home 2013-08-01 07:53:20 +00:00
Ralf Becker
8ce9969ece we need to double encode (html::htmlspecialchars( , TRUE)), as otherwise we get invalid json, eg. for quotes, fixes not working display in filemanager for some directories containing directories with quotes in their name 2013-08-01 06:36:18 +00:00
Nathan Gray
afa7a73f0a Fix chosen sizes using new width attribute for account multi-select 2013-07-26 15:08:17 +00:00
Klaus Leithoff
c5380c2647 * CKEditor/ASpell: adaption of aspell plugin to work with IE10 2013-07-26 10:41:11 +00:00
Klaus Leithoff
7cf8a4d01b * CKEditor/ASpell: adaption of aspell plugin to work with IE10 2013-07-26 10:40:28 +00:00
Ralf Becker
3b0eccb9d4 * eTemplate/all apps: (silently) limit number of links shown to 1000 newest, to not run into memory_limit or max_execution_time and assuming noone will scroll further down anyway 2013-07-26 09:39:14 +00:00
Ralf Becker
200a8860bf * eTemplate/all apps: (silently) limit number of links shown to 1000 newest, to not run into memory_limit or max_execution_time and assuming noone will scroll further down anyway 2013-07-26 09:38:38 +00:00
Nathan Gray
f65680a7ae Add CSS to better match egw. Fix chosen sizes using new width attribute. Not perfect, but at least never too small. 2013-07-25 20:28:32 +00:00
Ralf Becker
69a336d58b * Async service/Backup: updating job to next scheduled time BEFORE running it, to copy with jobs running longer then async frequency of 5min, eg. backup 2013-07-25 13:11:37 +00:00
Ralf Becker
8e85c86f8b * Async service/Backup: updating job to next scheduled time BEFORE running it, to copy with jobs running longer then async frequency of 5min, eg. backup 2013-07-25 13:11:07 +00:00
Ralf Becker
e4e725b5bc removed ancient "mark untranslated strings with *" site configuration, as it is unnecessary and breaks links-stream-wrapper and WebDAV 2013-07-25 12:18:43 +00:00
Ralf Becker
59c683c359 removed ancient "mark untranslated strings with *" site configuration, as it is unnecessary and breaks links-stream-wrapper and WebDAV 2013-07-25 12:18:08 +00:00
Ralf Becker
be0c913c35 * Admin/Preferences: fixed not working special char detection in passwords, if you required 4 character classes it always failed 2013-07-25 07:24:33 +00:00
Ralf Becker
71676f982a fixed not working special char detection 2013-07-25 07:21:35 +00:00
Ralf Becker
37671ac812 fixed handling of attributes stored in data, was depending on order or attributes to work 2013-07-24 10:18:11 +00:00
Ralf Becker
8ec5425c5a disable minify-ing of javascript, until I find time to fix it, as it stalls testers (css still get minifyed, if debug minify is off in site config) 2013-07-24 07:42:27 +00:00
Ralf Becker
4557a1d24d reverted "no need for RegExp replace", as javascript only replace first occurence, if a string given 2013-07-23 14:42:24 +00:00
Ralf Becker
6e6b2b7b0a reverted "no need for RegExp replace", as javascript only replace first occurence, if a string given 2013-07-23 14:41:53 +00:00
Ralf Becker
8242d40d1e no need for RegExp replace 2013-07-23 11:49:16 +00:00
Ralf Becker
daf247f3ad fixed tail-window did not scroll to bottom automatic after jQuery update 2013-07-23 11:45:57 +00:00
Ralf Becker
58949008f9 disable outer scrollbar, eg. if rendering time is swichted on 2013-07-23 11:33:23 +00:00
Ralf Becker
ae86519a58 disable outer scrollbar, eg. if rendering time is swichted on 2013-07-23 11:32:29 +00:00
Klaus Leithoff
c4caefc9e9 suppress warning on searching for active members 2013-07-23 10:59:56 +00:00
Klaus Leithoff
46e8c16016 suppress warning on searching for active members 2013-07-23 10:58:43 +00:00
Klaus Leithoff
e92e3694ee replace currentapp occurence with egw_appName 2013-07-23 10:12:00 +00:00
Ralf Becker
16191d4db4 rendering quick-add menu on clientside and content-security safe, thought not yet in idots template, also removed not used inline javascript from idots 2013-07-22 19:20:13 +00:00
Ralf Becker
4ed52a2b16 get notifications-popup ready for content-security, install as object in app.notifications and use data-poll-intervall of script tag to pass poll frequency 2013-07-22 13:29:20 +00:00
Ralf Becker
5842f5fd07 removed afaik not used currentapp, newer egw_appName can be used instead 2013-07-22 08:09:15 +00:00
Nathan Gray
cd64ef06dc Fix copy/paste error initializing app.js object 2013-07-20 14:16:21 +00:00
Ralf Becker
74cb73d2d2 moved most action "comfort" functions (with exception of nm_action and pagination) from server-side nextmatch class to client-side egwActions.updateActions() method, so they are available for all widgets 2013-07-20 13:45:22 +00:00
Nathan Gray
d4880a3351 Load & parse etemplate2 if set in egw.js object's data-attributes 2013-07-20 13:42:23 +00:00