[gen] For Strings with validator=String.URL, an HTML link is rendered in view layouts; added a 'real' 'state' field to any Appy class, allowing to use it in search screens for example; added 2 hook methods: getIcons and getSubTitles, allowing to add, in lists of objects (Refs or queries), icons besides the title and anything below it; optimized query.pt: for every new query, 1 server request is done (previously, one standard request + one ajax request were done); removed columns 'actions' (Refs, query): action icons are not included in the column containing the title (we avoid having empty columns whhen no action is available).
This commit is contained in:
parent
7240561f7f
commit
4a69a3beb2
20 changed files with 142 additions and 131 deletions
|
@ -200,6 +200,26 @@ function toggleCheckbox(visibleCheckbox, hiddenBoolean) {
|
|||
else hidden.value = 'False';
|
||||
}
|
||||
|
||||
// Function that sets a value for showing/hiding sub-titles.
|
||||
function setSubTitles(value) {
|
||||
createCookie('showSubTitles', value);
|
||||
// Get the sub-titles
|
||||
var subTitles = document.getElementsByName('subTitle');
|
||||
if (subTitles.length == 0) return;
|
||||
for (var i=0; i < subTitles.length; i++) {
|
||||
if (value == 'true') subTitles[i].style.display = 'block';
|
||||
else subTitles[i].style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
// Function that toggles the value for showing/hiding sub-titles.
|
||||
function toggleSubTitles() {
|
||||
var value = readCookie('showSubTitles');
|
||||
var newValue = 'true';
|
||||
if (value == 'true') newValue = 'false';
|
||||
setSubTitles(newValue);
|
||||
}
|
||||
|
||||
// Functions used for master/slave relationships between widgets
|
||||
function getSlaveInfo(slave, infoType) {
|
||||
// Returns the appropriate info about slavery, depending on p_infoType.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue