Nathan Gray
71f0fcdda0
Implement refresh type 'update' to _only_ update the data of a row - sorting is not considered, so make sure to use 'edit' if sorting might be affected.
2014-01-13 09:40:23 +00:00
Nathan Gray
9009ef44bb
Pass current app to egw_app_header() so it can set header for correct app. Fixes sometimes wrong app header shown.
2013-12-23 16:13:40 +00:00
Hadi Nategh
1d14ecc80f
Remove "drag-and-drop" and "IE dropdownmenu hack" from the common preferences
2013-12-19 10:19:14 +00:00
Hadi Nategh
185237291f
Make sure the et2 is not empty before giving up to not refresh the whole page
2013-12-19 08:46:51 +00:00
Nathan Gray
b9f39dd315
- Use egw.link() instead of string concatenation so it can craft the URL 'properly'
...
- Load categories in a div instead of an iframe
2013-12-10 22:26:07 +00:00
Ralf Becker
b2c563e5aa
restoring current app/tab, if pressing save or cancel, to do so let server know which is current app and run under that appname (otherwise redirect will happen to currently views app
2013-12-06 00:02:16 +00:00
Hadi Nategh
fca35f8127
Revert r44596 about egw_refresh 'cause need more investigation
2013-11-26 08:48:10 +00:00
Hadi Nategh
74d0797904
Make sure only fall into et2 specific reload for egw_refresh when the etemplate2 object has value
2013-11-19 08:36:08 +00:00
Nathan Gray
07ff17704f
Refresh current app or target app too, like it says it's supposed to
2013-11-04 18:57:20 +00:00
Klaus Leithoff
43d73abbcd
test if the required method is available on framework
2013-10-10 15:38:18 +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
Ralf Becker
2f39c7b4dd
fixed not working preferences under idots template
2013-10-03 15:54:19 +00:00
Ralf Becker
66db293a67
missing commit for new preferences
2013-10-03 15:17:14 +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
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
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
d16c426fb6
first step towards content-security by passing parameters to egw.js script via data-attributes of script tag instead of using inline scripts in page
2013-07-19 08:45:26 +00:00
Nathan Gray
547d125a30
Check app_refresh to not get an error if an application overrides app_refresh() instead of using register_app_refresh()
2013-02-14 11:11:17 +00:00
Nathan Gray
33e94d355c
Fix app_refresh to support applications that set window.app_refresh instead of calling register_app_refresh()
2013-02-13 12:47:17 +00:00
Nathan Gray
f2fc558e19
- Add static methods to get into etemplate2 widget context from outside. Call etemplate2.getByApplication(app) or etemplate2.getByTemplate(name) for a list of etemplate2 objects
...
- Add register_app_refresh() function to allow applications to specify a more intelligent way to refresh them
- Change egw_refresh() to call registered refresh function, or if etemplate2 is available try that over reloading the whole page
2013-02-12 15:46:14 +00:00
Nathan Gray
cfa0b7277a
Fix for IE overflow from Anthony Messina
2013-01-17 23:29:14 +00:00
Nathan Gray
6c03b0ec39
Try to avoid conflicts between framework's egw_appWindow() & jsapi's egw_appWindow()
2012-12-12 19:45:27 +00:00
Andreas Stöckel
292f18bc1a
Window dependant api modules do now get reinstanciated, if the window location changes
2012-03-07 15:20:04 +00:00
Ralf Becker
d295c17e90
fix for community.egroupware.org bug #3027 : Open item in element list no longer working
2011-08-26 07:31:18 +00:00
Ralf Becker
24e34f7927
new clientside API object currently supporting the following methods:
...
- egw.preferences(_name, _app='common') return preference _name of _app (only common prefs loaded currently)
- egw.open() allowing to open app-entries utilising the link registry, deprecating egw_open from jsapi.js
- egw.lang(_msg, _arg1, ..., _argN) placeholders are not yet implemented
2011-08-23 14:29:56 +00:00
Ralf Becker
ea6b823bd4
additional parameters _replace and _with for egw_refresh to modify the url, fixed not working update of existing msg parameter
2011-06-24 14:11:37 +00:00
Andreas Stöckel
9db8424e15
Implemented default focusing of objects in the tab manager, added new egw_getAppName function on js side, which returns the name of the currently active application - this is needed for the keyboard handler to pass the key events to the correct application object manager.
2011-06-15 20:54:58 +00:00
Ralf Becker
ed8c386a12
using egw_refresh to allow fmail to ignore the saved/deleted message
2011-06-06 15:11:25 +00:00
Ralf Becker
2bba68b575
nicer workaround
2011-06-03 10:14:12 +00:00
Ralf Becker
310b22c172
* workaround for Fennec bug https://bugzilla.mozilla.org/show_bug.cgi?format=multiple&id=648250 window.(outerHeight|outerWidth|screenX|screenY) throw exception
2011-06-03 09:50:27 +00:00
Ralf Becker
423a1d9303
new method egw_appWindowOpen(app,url)
2011-06-02 12:37:49 +00:00
Ralf Becker
47e2764da0
new javascript method egw_open() to open egw_entries using there registered url and popup sizes from the link registry
2011-06-02 11:13:41 +00:00
Ralf Becker
af75f60ff4
fixed IE(8) javascript error: "null" is null or not an object
2011-04-24 12:40:06 +00:00
Andreas Stöckel
e19cc44fcb
Removed base64-encoding from egw_instant_load.html, added code to egw_json which inserts script tags seperately when content is assigned to the innerHTML property
2011-03-17 18:00:24 +00:00
Andreas Stöckel
0d88ac8799
Reversed most changes made for egw-stylite #8295 , commited changes proposed by Ingo Ratsdorf in egroupware.org #2834 , probably fixes egroupware.org #2831
2011-02-04 14:28:12 +00:00
Andreas Stöckel
0f0e57f398
Got remote applications in the jdots template finally working as they should - this unfortunately required a lot of 'dirty' hacks, as egroupware had not been designed to do this. So e.g. there had to be a litte bit code added to the login page, which prevented it from redirecting to a page with a full framework rebuild.
2011-01-20 14:11:47 +00:00
Ralf Becker
ccfa98ff9f
new method to refresh an egroupware applications view, with the possibility for the application to overwrite the default handing of reloading everything
2010-12-28 03:02:49 +00:00
Klaus Leithoff
6476c7af39
allow upper case window names too
2010-11-22 14:47:10 +00:00
Ralf Becker
e68255167e
IE fails, if windows name in egw_openWindowCentered2 contains something no a letter, number or underscore --> removing it
2010-11-17 12:31:13 +00:00
Andreas Stöckel
b5e33eab09
- Fixed etemplate input dirty handling
...
- Now generating an widget object tree in widget.js
- Added generic response to egw_json
- Moved "getFramework" function to jsapi and renamed it to "egw_getFramework"
- Added plugin system to egw_json
- Transformed the jQuery "replaceWith" call form class.etemplate_form.inc.php into an own json plugin
- Fixed label creation for et_html
2010-07-08 12:03:13 +00:00
Andreas Stöckel
0867ed78d8
Added missing console.info dummy function
2010-07-01 13:52:55 +00:00
Andreas Stöckel
7520c468c7
Moved egw_seperateJavaScript to jsapi
2010-06-22 14:39:27 +00:00
Klaus Leithoff
4795658fec
for egw_openWindowCentered return a WindowID by default
2010-06-11 12:31:29 +00:00
Andreas Stöckel
4b108026c6
Fixed problem with generation of numerical indices in _egw_json_getFormValue, using the new global parameter of egw_json_response.redirect in json.php
2010-06-11 10:23:13 +00:00
Ralf Becker
bcdc505f5a
returning something, replaces whole window in FF, if used in link as "javascript:egw_openWindowCentered2()"
2010-06-10 17:26:00 +00:00
Andreas Stöckel
de5c558015
Fixed errors with non-defined "tree" element in xajax responses in felamimail
2010-06-09 14:41:53 +00:00
Andreas Stöckel
718264c6e7
Added egw_appWindow funtion to jsapi
2010-06-04 12:16:13 +00:00
Klaus Leithoff
c93b76987a
enable create of recurreence for weekdays only for recur_type weekly (conditional enabling/disabling weekday selection area) provided by andreas stoeckel
2010-04-16 13:24:58 +00:00
Nathan Gray
af9df0faf4
Fix for possibly undefined variable
2010-03-26 16:47:31 +00:00
Klaus Leithoff
3ac8b33231
move the ie dropdown menu hack to jsapi, make it an preference, so you can switch it off, if it does not work for you
2010-02-12 09:04:44 +00:00