Author: nathangray
New Revision: 55788
URL: http://svn.stylite.de/viewvc/egroupware?rev=55788&view=rev
Log:
Some adjusting of calendar list sort order:
- All filters except Before default to sorting earlier events first (start date asc)
- For all day events for the same date, non-blocking before blocking
Modified:
trunk/calendar/inc/class.calendar_uilist.inc.php
trunk/calendar/js/app.js
— trunk/calendar/inc/class.calendar_uilist.inc.php (original)
+++ trunk/calendar/inc/class.calendar_uilist.inc.php Wed Apr 20 18:52:52 2016
@@ -256,7 +256,7 @@
if ($old_params[‘filter’] && $old_params[‘filter’] != $params[‘filter’]) // filter changed => order accordingly
{
$params[‘order’] = ‘cal_start’;
@@ -286,9 +286,12 @@
‘query’ => $params[‘search’],
‘offset’ => (int) $params[‘start’],
‘num_rows’=> $params[‘num_rows’],
-
'order' => $params['order'] ? $params['order'].' '.$params['sort'] : 'cal_start ASC',
'cfs' => $params['csv_export'] ? array() : $cfs,
);
-
// Non-blocking events above blocking
-
$search_params['order'] .= ', cal_non_blocking DESC';
-
switch($params['filter'])
{
case 'all':
— trunk/calendar/js/app.js (original)
+++ trunk/calendar/js/app.js Wed Apr 20 18:52:52 2016
@@ -1217,6 +1217,15 @@
if(filter)
{
app.calendar.state.filter = filter.getValue();
-
// Change sort order for before - this is just the UI, server does the query
-
if(app.calendar.state.filter == 'before')
-
{
-
view.getWidgetById('nm').sortBy('cal_start',false, false);
-
}
-
else
-
{
-
view.getWidgetById('nm').sortBy('cal_start',true, false);
-
}
}
else
{
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs