Commit Graph

198 Commits

Author SHA1 Message Date
Hadi Nategh
d95b5b9e3d Call resize handler of widgets with no excess_height which means resize is from nm 2015-05-08 13:41:17 +00:00
Hadi Nategh
c1943235b1 Trigger widget's resize only if there's excess_height 2015-05-05 12:39:11 +00:00
Hadi Nategh
f4285fb820 Treat iceweasel browser like as firefox 2015-03-31 14:04:48 +00:00
Ralf Becker
8c8e61630d allow to submit partial content by passing a container(-widget) to etemplate2.submit()
- not send content is not validated and therefore not passed to server-side callback (currently only implemented for text-, select- and checkbox)
- new method et2_grid.getRow(_widget) to return a fake row container to pass it etemplate2.submit() --> implemented a real row-container for et2_grid
- new output_mode=4 for etemplate_new::exec() to force a json response, like form was submitted from client-side
--> allows to use full server-side validation for ajax like calls submitting only partial content
2015-03-20 15:39:35 +00:00
Hadi Nategh
1108e0b30d Focus on the first input field only if the field is empty for mobile theme 2015-03-18 16:56:39 +00:00
Ralf Becker
0ff1738255 * Safari: fix security warning caused by auto-complete when submitting from https to about:blank 2015-02-20 19:05:17 +00:00
Ralf Becker
aff689e054 * All apps: improved printing: CRM view and given number or rows
r51716: Extend printing support to work with multiple etemplates on the printed tab
r51717: Better handling of printing of various row quantities:
- print < loaded row count
- print > loaded row count
- print all rows
2015-02-12 08:06:50 +00:00
Hadi Nategh
d0f37ac53c Fix resize method for templates with height bigger than screen.availHeight 2015-02-09 11:49:33 +00:00
Ralf Becker
6625ffdde4 * All apps: printing of lists improved a lot, asks now how many lines to print
r51437: Work in progress of printing nextmatches, still needs some prettying up & edge case testing
r51453: Bug fixes on nextmatch printing
 - fix loaded rows check
 - fix hidden etemplate check
r51454: Printing CSS improvements
r51588: Attempt to get nextmatch printing always on the page (landscape)
r51589: Attempt to get nextmatch printing always on the page (landscape) - put things back if they cancel at nextmatch dialog
r51612: disable footer for print
2015-02-06 13:36:25 +00:00
Hadi Nategh
4249dca91d * All apps: Activate cross-browser autocomplete 2015-02-06 13:23:40 +00:00
Nathan Gray
1fd14256f7 Make sure url has a value before matching, prevents errors with some dialogs 2015-02-02 23:32:03 +00:00
Hadi Nategh
bb8920aa3c Revert the autocomplete feature 2015-01-30 16:00:07 +00:00
Hadi Nategh
90dd0f8a97 * All Apps: Fix autocomplete form only for Chrome 2015-01-29 16:48:01 +00:00
Ralf Becker
3d1836aa49 need to split off domain first, as it could contain app-name part of template eg. stylite.report.xet and https://my.stylite.de/egw/... 2015-01-28 10:17:44 +00:00
Hadi Nategh
f01cfd4a41 Fix etemplate2 clear instance broken by commit 51394 2015-01-26 14:33:09 +00:00
Ralf Becker
48fa4c1857 share loaded eTemplates with iframes and popups, this way they dont need to load templates in same EGroupware session again (unless main window get reloaded), also adding now a cache-buster by default, if server dont supply one 2015-01-23 19:33:29 +00:00
Ralf Becker
d100187584 new script widget to allow to include javascript in (customizied) templates, also adding an id to style widget 2015-01-23 19:32:51 +00:00
Ralf Becker
4578d849f5 new script widget to allow to include javascript in (customizied) templates, also adding an id to style widget 2015-01-23 19:32:32 +00:00
Ralf Becker
cf61d38137 share loaded eTemplates with iframes and popups, this way they dont need to load templates in same EGroupware session again (unless main window get reloaded), also adding now a cache-buster by default, if server dont supply one 2015-01-23 14:32:47 +00:00
Hadi Nategh
8ee3b4ccb1 Remove commented code from previous commit 2015-01-09 16:21:32 +00:00
Hadi Nategh
607677d9e7 Fix getting wrong initial excess_height 2015-01-09 16:19:52 +00:00
Hadi Nategh
dec43dd938 Fix typo from commit #49813 2014-12-10 15:59:34 +00:00
Hadi Nategh
a94f892219 Fix mobile framework popup not showing up the close botton 2014-12-10 15:53:28 +00:00
Hadi Nategh
be3dff7c30 Implement framework specific get_excessHeight to be able to calculate excess height correctly for each framework window 2014-12-09 16:07:51 +00:00
Hadi Nategh
dfe03c8531 Resize the initial resize after everthing is loaded immediately 2014-12-09 11:20:38 +00:00
Hadi Nategh
0607b60bc9 Set a timeout to window resizer to make sure this happens after other resize events, hopefully fixes the timing issue 2014-12-08 17:04:41 +00:00
Hadi Nategh
8203d5f695 Use appHeader outerHeight for resize calcualtion 2014-12-08 12:24:21 +00:00
Hadi Nategh
ee6754b75c Take AppboxHeader into account for dialog resize height calculation 2014-12-08 10:51:34 +00:00
Hadi Nategh
1869e94f84 Popup resize handler enhancement:
- Fix multi-line textbox resizing
- Introduce tab_height to tab widget and remove extra height set on tab containers children
- Let mail compose uses its own resize handling as it deals with some special resizing
2014-12-05 17:29:41 +00:00
Hadi Nategh
e8d1c874e6 Implement resize handler callback for widget in order to resize widget properly after the window size changes 2014-12-04 16:38:34 +00:00
Nathan Gray
46bcd3df8a Automatically set focus to first input 2014-12-03 23:43:34 +00:00
Ralf Becker
8a9657541d moving egw_openWindowCentered() to egw(window).openPopup() 2014-12-01 10:45:24 +00:00
Nathan Gray
f3c3fedf32 If the current application does not own the template, load the javascript for the current application and the application owning the template. (Gets actions working reliably in home) 2014-11-28 17:34:38 +00:00
Nathan Gray
08708664b3 If one application uses a template from another, notify the application that loaded the template, not just the application that owns it. 2014-11-18 23:10:41 +00:00
Ralf Becker
026e93a0c4 use template base url from initial template, to continue using webdav, if that was loaded via webdav 2014-11-05 13:07:13 +00:00
Ralf Becker
178bca7f7a fix redirect loop initiated eg. by saving a mail, caused by document.location=url triggering etemplate unload handler and destroying et2 request, identical redirect url detected by jdots framework causes refresh via nextmatch --> next redirect 2014-10-08 20:02:59 +00:00
Nathan Gray
aa6c36ba3f Work on app-entry widgets (contact-value) 2014-09-30 21:37:45 +00:00
Hadi Nategh
427956518e * Etemplate/widget: Introduce video widget.
- Add ability to play video media/stream
2014-08-19 10:10:09 +00:00
Hadi Nategh
161734f941 Handle validation_error if widget is children of a tabbox.
-Fix widget with validation error does not activate its related tab.
2014-08-18 12:05:04 +00:00
Nathan Gray
9851a8a6ef Trigger a clear event on the etemplate DOMContainer when the etemplate is cleared, so app code can listen for it.
This allows a 'et2_unload' sort of processing.
2014-07-28 20:51:49 +00:00
Hadi Nategh
296530b320 Fix etemplate2 submit() method for those buttons which they do not have nested ids 2014-07-07 13:25:20 +00:00
Nathan Gray
34ed2d7290 - Fix missing change handler on some nm header templates
- Fix improper usage of jQuery.when() (it doesn't take an array)
- Fix missing filter detection to not break with multiple values
2014-05-26 22:27:57 +00:00
Ralf Becker
30ffb38bd6 reverted r47030 as it breaks server-side nextmatch actions
nextmatch values were in root instead of namespaced "nm", causing all serverside actions (eg. move one contact into an other addressbook) to fail, because validation did not find values placed clientside outside valid namespace
2014-05-23 16:00:17 +00:00
Ralf Becker
24ee68bdf2 fixed infinit loop for apps running in iframe by refactoring frameworked templates work with client-side api:
- moved shared etemplate2 part into static etemplate2.app_refresh() method
- egw_message.refresh() calls framework.refresh() which can return a DOMwindow for egw.refresh() to work on, instead of calling egw.refresh recursive
2014-05-23 08:21:11 +00:00
Ralf Becker
893091e286 - new app.js observer method which receives update notifications from all apps
- app.infolog.observer triggering refresh of InfoLog list, when a timesheet get stored
- moved code of already deprecated egw_refresh() to egw.refresh() and changed etemplate to use that
- framework from jdots/pixelegg template no longer overwrites window.egw_refresh, but egw.refresh calls framework.refresh for regular refreshs if framework is present
2014-05-22 15:29:14 +00:00
Nathan Gray
ccdb54a366 Gantt chart progress 2014-05-21 22:11:36 +00:00
Nathan Gray
d80ef84012 Remove div from console, it's no longer useful 2014-05-07 16:35:51 +00:00
Nathan Gray
c4f56f2c3b New dhtmlxGantt library, and etemplate2 widget to use it (work in progress) 2014-04-16 19:47:29 +00:00
Ralf Becker
ce3c5c897f stop server-side validation errors, if submit was with no_validation 2014-04-02 19:30:33 +00:00
Nathan Gray
734b5d02f2 Add a parameter for submit() to skip the client-side widget validation 2014-04-02 18:49:43 +00:00