Commit Graph

138 Commits

Author SHA1 Message Date
Nathan Gray
51951d55d5 Fix details / no details toggling of columns 2016-03-21 21:02:09 +00:00
Ralf Becker
d49f8bc45f fix situation where multiple app.js objects are used, eg. InfoLog and CRM view in Addressbook:
- etemplate2 creates a private app object instead of using window.app with just prototypes, if template is not from current app
- fixed all cases where window.app was used to use just app, to use evtl. private object
- app_base no longer assigns itself to window.app (window.app[this.appname] = this), as that breaks private app objects
- et2_compileLegacyJS replaces app.appname with widget.getInstanceManager().app_obj.appname
- etemplate2 stores either private or global app object in app_obj attribute
2016-03-17 18:12:36 +00:00
Nathan Gray
0db8f1f6da Fix js error "Cannot read property 'getArrayMgr' of null" 2016-03-15 16:59:38 +00:00
Ralf Becker
67e6965b1f fix javascript error when getState called by et2_ready from tutorials, caused by content.data.nm does not exist for tutorials 2016-02-22 15:48:19 +00:00
Ralf Becker
a4e350317e put a single [Add] button left of nm-header (opening selected type or task if not) and show dates popup right aligned 2016-02-15 11:59:55 +00:00
Hadi Nategh
9332ce4a80 Mobile theme WIP:
- Add plus button for all apps list views
2016-01-14 10:56:48 +00:00
Nathan Gray
fae06bcbe5 Refinements to timestamp button
- Better icon & more specific hover text
- Now goes to start if you forget to place cursor
- Style encrypt button to match
2015-12-21 22:19:05 +00:00
Nathan Gray
833253e73d Add a button to insert the current time and user into infolog description 2015-12-16 18:14:37 +00:00
Nathan Gray
12962b77b4 Fix bug where additional infolog columns get shown after changing selected columns 2015-12-02 21:03:45 +00:00
Nathan Gray
e56ff68a61 - Make sure we always use index's nextmatch
- Add some documentation about the this.et2 variable
2015-12-02 18:42:55 +00:00
Nathan Gray
3a84c8118f - Change from 0% to 10% when changing not started to ongoing
- When changing type column filter, clear status if it is not in the new type
2015-11-26 16:07:36 +00:00
Nathan Gray
2dee92b877 Hopefully resolve completed vs status with custom statuses. 2015-11-20 16:33:59 +00:00
Nathan Gray
cc5b035d15 - Fix drag & drop breaks when changing to another application tab
- Fix wrong ajax method called to move infologs
2015-11-05 20:56:13 +00:00
Hadi Nategh
5f19cc95fc Mailvelope WIP:
- Add mailvelope keepAttachments option
2015-09-17 09:52:58 +00:00
Ralf Becker
d0dae2b32a * InfoLog: fix not working "No filter" favorite 2015-08-24 14:34:19 +00:00
Hadi Nategh
433baf9459 Fix encrypted infolog shows on hover even if the mailvelope is not available 2015-08-20 16:14:06 +00:00
Ralf Becker
765d28ea21 fixed not being able to switch on encryption for new entries 2015-08-19 13:28:33 +00:00
Hadi Nategh
57a3c318ea Do not let to address a possible freed object 2015-07-30 15:25:44 +00:00
Hadi Nategh
b582716dff Fix infolog error: content is undefined 2015-07-30 10:33:41 +00:00
Nathan Gray
89a8ee9804 Decrypt on hover for historylog 2015-06-09 20:57:43 +00:00
Nathan Gray
e1d56b5969 Move some common code for decrypt on hover 2015-06-09 20:04:57 +00:00
Hadi Nategh
2d9821ff01 Resolve mailvelope encrypt for infolog print dialog 2015-06-09 14:45:32 +00:00
Ralf Becker
1ca4b24ec2 added missing error message when adding a responsible without key to an encrypted infolog, also adding timestamp to infolog-encryption.js to force loading of changed files 2015-05-29 08:20:41 +00:00
Ralf Becker
ddbe8ccec3 encryption of InfoLog entries (EPL only) 2015-05-28 14:40:33 +00:00
Nathan Gray
d599cadf8a Pre-set contact in new infologs opened from context menu.
Contact taken from link filter, or current contact when in CRM view.
2015-05-11 21:03:29 +00:00
Nathan Gray
237d1d809e * If column information is stored in a favorite, restore it along with the filters
To get column information in the favorite, change the visible columns before you create the favorite.
If the favorite has no column information, the visible columns will not be changed.
2015-05-11 17:29:31 +00:00
Nathan Gray
9e1625c983 Avoid errors in refresh if most recently opened etemplate gets closed before refresh. 2015-03-16 21:15:38 +00:00
Ralf Becker
043f2480f4 keep automatic update of pricelist, if project get updated 2015-03-10 12:21:03 +00:00
Nathan Gray
345ec3c652 Make sure status has a 'not-started' value before we switch to it, prevents infologs disappearing if you change status back to 0% 2015-03-04 16:13:47 +00:00
Ralf Becker
93a514993a * InfoLog/Addressbook: refresh CRM view if InfoLog was edited without having InfoLog tab open 2015-02-17 16:21:50 +00:00
Ralf Becker
f994089389 * InfoLog: new context menu: View parent with children 2015-02-13 18:03:40 +00:00
Hadi Nategh
39cc660c0d Implement set window title for each application with a default title field or define an app specific custom get title 2015-01-05 14:28:35 +00:00
Nathan Gray
fc3eca62f0 Take nextmatch / favorite values into account, not just what was set on first load. 2014-12-11 17:59:29 +00:00
Ralf Becker
5549dd1fd2 * InfoLog: "No filter" favorite was not resetting filters anymore 2014-10-23 12:42:24 +00:00
Ralf Becker
b6f69d3a4c "No filters" in InfoLog was not removing a search 2014-10-21 12:17:00 +00:00
Ralf Becker
8af4ca6049 reverting r49030 and implementing same functionality with just app.infolog.(get|set)State(), fixes introduced error set you could not filter eg. by type in an action view 2014-10-16 15:59:10 +00:00
Ralf Becker
004de5c81e * InfoLog: allow to (re-)set view of entries link to contacts via favorites 2014-10-16 09:29:01 +00:00
Nathan Gray
2cf2c3ec12 Avoid extra reload of infolog, just hide the details 2014-09-16 14:30:52 +00:00
Nathan Gray
2b17360a7e Set appropriate no details CSS on initial load 2014-09-09 14:28:16 +00:00
Nathan Gray
a862bd46bb Store infolog list details/no details choice as implicit preference 2014-09-02 21:14:33 +00:00
Nathan Gray
9a0b6a921b Show or hide details only for the current nextmatch 2014-09-01 19:20:05 +00:00
Nathan Gray
f3c15f87b1 Infolog lists embedded as action can have their own separate column preferences. 2014-08-25 23:18:09 +00:00
Nathan Gray
300263e534 Always include date sub-template, and just disable it when not needed.
Fixes date widgets not validated.
2014-08-25 17:29:42 +00:00
Hadi Nategh
81dc9a9be3 Make sure all DOMSubtrees are loaded before trigger the print job on window onload. Fix error "getComputing is not function" when closing the window while the print preview is loaded 2014-07-29 15:02:46 +00:00
Hadi Nategh
dcad41f542 Try to not always refresh calendar via observer for every infolog entry, but only the ones that are integrated in calendar 2014-06-26 12:39:20 +00:00
Nathan Gray
a866eb5ed9 Fix details filter not properly changing 2014-06-04 18:43:21 +00:00
Hadi Nategh
a7ecc60a5e Make sure that _links is not undefined 2014-05-27 13:36:40 +00:00
Hadi Nategh
d58b111165 Remove _targetapp argument from observer and add _links. Additionally, make sure if the application, fired observer, is linked and needs to be refreshed 2014-05-26 14:01:18 +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
Hadi Nategh
d322ee7ec4 Add print item in infolog context menu and onload print functionality 2014-05-20 10:51:37 +00:00
Nathan Gray
354a8426af - Fix $action gets lost if an action (delete) is done
- Fix deleted filter + link showed no results
2014-04-28 20:25:40 +00:00
Hadi Nategh
ffb1159851 Fix setting nm left_header to a none existing template in infolog index 2014-03-07 11:55:11 +00:00
Nathan Gray
8b9f806b1f - Fix start date filter date selection
- Add end date filter (uses date selection)
2014-03-06 22:12:50 +00:00
Ralf Becker
3e07afb9ac using new et2_ready signature incl. template name and fixed IDE warnings 2014-03-03 09:28:56 +00:00
Nathan Gray
c7de2d229d Better check to make sure change callback doesn't run during template rendering - handles template reloads 2014-01-10 15:02:50 +00:00
Nathan Gray
5ae4da09cd Make sure change callback doesn't run during template rendering 2014-01-10 14:25:41 +00:00
Nathan Gray
1bace180cf - Fix add popup with extras to handle multiple infolog nextmatches
- Fix setting primary link
2013-11-28 17:34:28 +00:00
Nathan Gray
5c6cceaa53 - Add js function to open a edit dialog with some fields pre-filled (type, category, action), use for buttons in nm right header
- Use different DOM ID for list when called from elsewhere
2013-11-27 00:17:08 +00:00
Ralf Becker
6d226a7921 split constructor function and place of instanciation for app.js objects: app[appname] = new app.classes[appname](); 2013-11-04 20:54:23 +00:00
Ralf Becker
a6311fa1a3 creating and using an app-specific egw object 2013-10-07 16:53:13 +00:00
Hadi Nategh
9341d7d31a Fix Add link in infolog SideMenu by using egw.open() 2013-09-25 09:20:32 +00:00
Hadi Nategh
49f9935b60 Fix to open the edit popup window with right size, attempts to open from sidemenu "Add" link 2013-09-19 13:47:02 +00:00
Hadi Nategh
a661d52de2 Infolog: Prefix name on css classes 2013-09-19 12:52:50 +00:00
Hadi Nategh
019db13e33 Handle, infolog->add link in sidebox menu via app.js, instead of using inline script on infolog_hook 2013-09-13 13:51:33 +00:00
Ralf Becker
af6e15e5cd removed left over prefix 2013-08-28 13:28:15 +00:00
Hadi Nategh
7ee2c05955 remove extra app prefixes from method names in app.js, for both infolog and timesheet applications 2013-08-27 10:46:42 +00:00
Hadi Nategh
9217768b07 Add new app.js to infolog application, missing from r43502. 2013-08-26 09:45:43 +00:00
Hadi Nategh
589e4ecfbc add app.js to infolog application, add ajax=true to index (enable drag-and-drop), and run infolog app by et2 2013-08-26 09:19:47 +00:00
Nathan Gray
a367693ac0 Fix CC line search display 2012-11-13 22:31:57 +00:00
Nathan Gray
2bb8169ded Get CC search working for et2 2012-06-06 17:16:29 +00:00
Nathan Gray
7184574fab Get details filter working in et & et2 2012-04-30 20:29:34 +00:00
Nathan Gray
383a78768f Get delete confirm popup working with et2 as well as old etemplate 2012-04-10 20:28:31 +00:00
Nathan Gray
455cc8a5d8 Make js work with et2 structure 2012-04-09 21:36:10 +00:00
Nathan Gray
8d9c033cbf Check to make sure element is there before looking inside 2012-04-05 20:16:54 +00:00
Ralf Becker
15d8b369f5 if status changed to ongoing, set percent to 10 2012-03-22 08:49:50 +00:00
Ralf Becker
5b4c2898b1 * InfoLog: if one of status, percent or datecompleted changed, change others to reasonable values 2012-03-18 14:44:16 +00:00
Ralf Becker
03e379e570 * jQuery: changed $ to $j to work around mootools use in Joomla templates and other js code in imported projects
required to change $ --> $j:
phpgwapi/*
jdots/*
etemplate/*
stylite/*
felamimail/*
admin/*
news_admin/*
projectmanager/*
importexport/*
infolog/*
ranking/*

required, but not automatic:
importexport/setup/etemplates.inc.php
phpgwapi/js/jquery/*

negative, not to touch or revert later:
phpgwapi/inc/savant2/Savant2/Savant2_Compiler_basic.php:		'(\$(.+))'            => 'print $1',
phpgwapi/js/dhtmlxtree/libCompiler/core.js
sitemgr/*
phpfreechat/*
gallery/*
activesync/include/smb.php:        '^\tIPC\\\$(.*)[ ]+IPC' => 'skip',
etemplate/inc/class.bo_merge.inc.php: if ($this->table_plugins && preg_match_all('/\\$\\$table\\/([A-Za-z0-9_]+)\\$\\$(.*?)\\$\\$endtable\\$\\$/s',$content,$matches,PREG_SET_ORDER))

find phpgwapi jdots etemplate stylite felamimail admin news_admin projectmanager importexport infolog ranking \
	\( -name '*.php' -o -name '*.js' \) -exec grep -q '\$(' {} \; -print \
	-exec sed -i '' 's|\$(|$j(|g' {} \;
svn revert phpgwapi/inc/savant2/Savant2/Savant2_Compiler_basic.php phpgwapi/js/dhtmlxtree/libCompiler/core.js \
	importexport/setup/etemplates.inc.php phpgwapi/js/jquery/jquery.js etemplate/inc/class.bo_merge.inc.php
	
additional changes:
phpgwapi/js/jquery/jquery.js:	window.$ --> window.$j
phpgwapi/js/egw_json.js:291	this.request = $j.ajax({url: this.url,
jdots/templates/jdots/head.tpl:59			$j(document).ready(function() {
phpgwapi/js/egw_action/egw_grid_view.js: $.browser --> $j.browser
importexport/setup/etemplates.inc.php: etemplate editor importexport.wizard_basic_export_csv.choose_fields onclick of check icon changed
phpgwapi/js/egw_action/tests/*.html
phpgwapi/js/egw_action/tests/js/jquery.js:	window.$ --> window.$j
2011-07-03 09:00:36 +00:00
Ralf Becker
8d7d6e1480 get delete confirmation working again, after change to global actionManager 2011-06-03 08:55:18 +00:00
Ralf Becker
81ea3b639c - using now nm_(open|hide|submit)_popup and nm_action => 'open_popup'
- fixes not working actions in InfoLog list in Addressbook view
- fixed not working adding/removing of responsible users
2011-05-07 08:51:35 +00:00
Ralf Becker
c0c2a0ed0e - fixed not working delete - was commented ;-)
- using original labels, for which we have translations
- always confirm with popup, not javascript confirm (makes things a lot easier)
2011-05-05 06:30:44 +00:00
Nathan Gray
03cd666e8b Implement client side delete confirmation 2011-05-03 23:31:40 +00:00
Ralf Becker
19cb4ca8d4 - got delegation and link via context working
- fixed sometimes not working context, because row id was not set
- disabling close and close all if not applicable
2011-05-03 07:26:32 +00:00
Nathan Gray
e92173afdd Work on context actions:
- Implement view of multiple selected parent / subs
- Implement link + delegation popups
- Fix filemanager action
- Change action selectbox to button, as in timesheet
2011-05-03 00:14:44 +00:00
Ralf Becker
1ef6edd5e8 Context menu for InfoLog: NOT YET COMPLETET, SOME STUFF WILL NOT WORK!
ToDo:
- implement view subs or parent from context
- test all context actions (some do not work)
- test CSS based disabling of actions
- change delegation or links popup not yet working (just an alert in index.js)
- delete of entries with subs (serverside confirmation displaying subs) probably not working
2011-05-02 19:41:21 +00:00
Nathan Gray
579d813ec9 * Add Cc field to Infolog 2011-03-08 19:18:07 +00:00
Nathan Gray
acf078a1c0 - Abstract multiple actions code to remove multiple if / switches
- Add multiple entry action to change entry delegation
2010-12-08 19:01:13 +00:00
Nathan Gray
b2b292603d - Fix incorrect result counts when using whole query
- Add action to change completion
- Give warning if trying to change the status of a done entry.  Completion of 100% will change it right back.
- Fix ACL when linking - only link to entries with EDIT permission
- Hide group types if user has no access to them
2010-11-23 17:56:56 +00:00
Nathan Gray
57866ca97e Infolog actions - missed JS file, changes to play nice from other apps when they include the js file 2010-11-22 22:44:52 +00:00