mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Implement widget historylog resize handler and fix historylog template in all apps
This commit is contained in:
parent
7d7430c0a6
commit
32596fb0e0
@ -341,7 +341,7 @@
|
||||
</box>
|
||||
</template>
|
||||
<template id="addressbook.edit.history" template="" lang="" group="0" version="1.9.001">
|
||||
<historylog id="history" width="100%" overflow="hidden"/>
|
||||
<historylog id="history" width="100%"/>
|
||||
</template>
|
||||
<template id="addressbook.edit" template="" lang="" group="0" version="1.9.004" class="addressbook_edit">
|
||||
<template id="addressbook.editname"/>
|
||||
@ -395,7 +395,7 @@
|
||||
<description/>
|
||||
</row>
|
||||
<row>
|
||||
<tabbox id="tabs" span="all" width="100%" tab_height="200">
|
||||
<tabbox id="tabs" span="all" width="100%" tab_height="250">
|
||||
<tabs>
|
||||
<tab id="general" label="Organisation"/>
|
||||
<tab id="home" label="Private" statustext="Home address, Birthday, ..."/>
|
||||
|
@ -241,7 +241,7 @@
|
||||
</grid>
|
||||
</template>
|
||||
<template id="calendar.edit.history" template="" lang="" group="0" version="1.7.002">
|
||||
<historylog id="history" options="history_status" width="100%" overflow="hidden"/>
|
||||
<historylog id="history" options="history_status" width="100%" />
|
||||
</template>
|
||||
<template id="calendar.delete_series" template="" lang="" group="0" version="1.7.003">
|
||||
<vbox>
|
||||
|
@ -1270,9 +1270,6 @@ div.calendar {
|
||||
background-color: rgba(255, 221, 115, 0.1);
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
#calendar-edit #calendar-edit_calendar-edit-history {
|
||||
max-width: 800px;
|
||||
}
|
||||
#calendar-edit #calendar-edit_calendar-edit-history tbody {
|
||||
display: table-row-group;
|
||||
width: 100%;
|
||||
|
@ -682,7 +682,6 @@ div.calendar { position: relative; }
|
||||
/*// Historie*/
|
||||
|
||||
#calendar-edit_calendar-edit-history{
|
||||
max-width: 800px;
|
||||
tbody{
|
||||
display: table-row-group;
|
||||
width: 100%;
|
||||
|
@ -31,7 +31,7 @@
|
||||
*
|
||||
* @augments et2_valueWidget
|
||||
*/
|
||||
var et2_historylog = et2_valueWidget.extend([et2_IDataProvider],
|
||||
var et2_historylog = et2_valueWidget.extend([et2_IDataProvider,et2_IResizeable],
|
||||
{
|
||||
createNamespace: true,
|
||||
attributes: {
|
||||
@ -480,5 +480,19 @@ var et2_historylog = et2_valueWidget.extend([et2_IDataProvider],
|
||||
}
|
||||
return columnName == 'note' || columnName == 'description' || (value && (value.length > 50 || value.match(/\n/g)));
|
||||
},
|
||||
|
||||
resize: function (_height)
|
||||
{
|
||||
if (typeof this.options != 'undefined' && _height
|
||||
&& typeof this.options.resize_ratio != 'undefined')
|
||||
{
|
||||
// apply the ratio
|
||||
_height = (this.options.resize_ratio != '')? _height * this.options.resize_ratio: _height;
|
||||
if (_height != 0)
|
||||
{
|
||||
this.div.height(this.div.height() + _height);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
et2_register_widget(et2_historylog, ['historylog']);
|
||||
|
@ -83,7 +83,7 @@
|
||||
</grid>
|
||||
</template>
|
||||
<template id="infolog.edit.history" template="" lang="" group="0" version="1.3.002">
|
||||
<historylog id="history" width="100%" overflow="hidden"/>
|
||||
<historylog id="history" width="100%"/>
|
||||
</template>
|
||||
<template id="infolog.edit.details" template="" lang="" group="0" version="1.9.001">
|
||||
<grid width="100%">
|
||||
@ -214,7 +214,7 @@
|
||||
<description/>
|
||||
</row>
|
||||
<row>
|
||||
<tabbox id="tabs" class="et2_nowrap" span="all" width="100%" tab_height="246px">
|
||||
<tabbox id="tabs" class="et2_nowrap" span="all" width="100%" tab_height="250px">
|
||||
<tabs>
|
||||
<tab id="description" label="Description" statustext="longer textual description"/>
|
||||
<tab id="details" label="Details" statustext="Location, priority , ..."/>
|
||||
|
@ -83,9 +83,7 @@
|
||||
</box>
|
||||
</template>
|
||||
<template id="timesheet.edit.history" template="" lang="" group="0" version="1.7.001">
|
||||
<box width="100%" overflow="auto">
|
||||
<historylog id="history"/>
|
||||
</box>
|
||||
<historylog id="history"/>
|
||||
</template>
|
||||
<template id="timesheet.edit" template="" lang="" group="0" version="1.9.002">
|
||||
<grid width="100%">
|
||||
|
Loading…
Reference in New Issue
Block a user