mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:31 +01:00
Fix modified view templates are not getting updated because of no cache-buster modification timestamp
This commit is contained in:
parent
14415720bc
commit
60bc400313
@ -216,14 +216,14 @@ class addressbook_hooks
|
||||
|
||||
$settings['geolocation_src'] = array(
|
||||
'type' => 'select',
|
||||
'label' => 'Default geolocation source address',
|
||||
'label' => 'Default GeoLocation source address',
|
||||
'name' => 'geolocation_src',
|
||||
'values' => array(
|
||||
'browser' => lang('Browser location'),
|
||||
'one' => lang('Business address'),
|
||||
'two' => lang('Private address')
|
||||
),
|
||||
'help' => 'Select a source address to be used in geolocation routing system',
|
||||
'help' => 'Select a source address to be used in GeoLocation routing system',
|
||||
'xmlrpc' => True,
|
||||
'admin' => false,
|
||||
'default'=> 'browser',
|
||||
|
@ -786,7 +786,7 @@ class addressbook_ui extends addressbook_bo
|
||||
if (Api\Header\UserAgent::mobile())
|
||||
{
|
||||
$actions['open']['onExecute'] = 'javaScript:app.addressbook.viewEntry';
|
||||
$actions['open']['mobileViewTemplate'] = 'view';
|
||||
$actions['open']['mobileViewTemplate'] = 'view?'.filemtime(Api\Etemplate\Widget\Template::rel2path('/addressbook/templates/mobile/view.xet'));
|
||||
$actions['view']['default'] = false;
|
||||
$actions['open']['default'] = true;
|
||||
}
|
||||
|
@ -465,8 +465,10 @@ var AppJS = (function(){ "use strict"; return Class.extend(
|
||||
.addClass('et2_mobile-view-container popupMainDiv')
|
||||
.appendTo(this.viewContainer);
|
||||
|
||||
var templateName = _action.data.mobileViewTemplate || 'edit';
|
||||
var templateURL = egw.webserverUrl+ '/' + this.appname + '/templates/mobile/'+templateName+'.xet'+'?1';
|
||||
var mobileViewTemplate = (_action.data.mobileViewTemplate ||'edit').split('?');
|
||||
var templateName = mobileViewTemplate[0];
|
||||
var templateTimestamp = mobileViewTemplate[1];
|
||||
var templateURL = egw.webserverUrl+ '/' + this.appname + '/templates/mobile/'+templateName+'.xet'+'?'+templateTimestamp;
|
||||
var data = {content:content, readonlys:{'__ALL__':true,'link_to':false}, currentapp:this.appname};
|
||||
|
||||
// etemplate2 object for view
|
||||
|
@ -151,7 +151,7 @@ class filemanager_ui
|
||||
'group' => $group,
|
||||
'allowOnMultiple' => false,
|
||||
'onExecute' => Api\Header\UserAgent::mobile()?'javaScript:app.filemanager.viewEntry':'javaScript:app.filemanager.editprefs',
|
||||
'mobileViewTemplate' => 'file'
|
||||
'mobileViewTemplate' => 'file?'.filemtime(Api\Etemplate\Widget\Template::rel2path('/filemanager/templates/mobile/file.xet'))
|
||||
),
|
||||
'mkdir' => array(
|
||||
'caption' => lang('Create directory'),
|
||||
|
@ -1079,6 +1079,7 @@ class infolog_ui
|
||||
'url' => 'menuaction=infolog.infolog_ui.edit&info_id=$id',
|
||||
'popup' => Link::get_registry('infolog', 'add_popup'),
|
||||
'group' => $group=1,
|
||||
'mobileViewTemplate' => 'edit?'.filemtime(Api\Etemplate\Widget\Template::rel2path('/infolog/templates/mobile/edit.xet'))
|
||||
),
|
||||
'parent' => array(
|
||||
'caption' => 'View parent with children',
|
||||
|
@ -939,7 +939,7 @@ class mail_ui
|
||||
'onExecute' => Api\Header\UserAgent::mobile()?'javaScript:app.mail.mobileView':'javaScript:app.mail.mail_open',
|
||||
'allowOnMultiple' => false,
|
||||
'default' => true,
|
||||
'mobileViewTemplate' => 'view'
|
||||
'mobileViewTemplate' => 'view?'.filemtime(Api\Etemplate\Widget\Template::rel2path('/mail/templates/mobile/view.xet'))
|
||||
),
|
||||
'reply' => array(
|
||||
'caption' => 'Reply',
|
||||
|
@ -946,7 +946,8 @@ class timesheet_ui extends timesheet_bo
|
||||
'popup' => Link::get_registry('timesheet', 'add_popup'),
|
||||
'group' => $group=1,
|
||||
'disableClass' => 'th',
|
||||
'onExecute' => Api\Header\UserAgent::mobile()?'javaScript:app.timesheet.viewEntry':''
|
||||
'onExecute' => Api\Header\UserAgent::mobile()?'javaScript:app.timesheet.viewEntry':'',
|
||||
'mobileViewTemplate' => 'edit?'.filemtime(Api\Etemplate\Widget\Template::rel2path('/timesheet/templates/mobile/edit.xet'))
|
||||
),
|
||||
/*
|
||||
'view' => array(
|
||||
|
Loading…
Reference in New Issue
Block a user