[pod,px] Allow to reference an already defined variable instead of defining one in a var statement, via the '@' prefix. For example, in PX: var='@i = i + 1'. [pod] Repaired broken tests [gen] Bugfixes.
This commit is contained in:
parent
bd80d63eda
commit
180b3473e8
11 changed files with 1903 additions and 1887 deletions
|
@ -245,26 +245,30 @@ function toggleCheckbox(visibleCheckbox, hiddenBoolean) {
|
|||
}
|
||||
|
||||
// Function that sets a value for showing/hiding sub-titles.
|
||||
function setSubTitles(value) {
|
||||
function setSubTitles(value, tag) {
|
||||
createCookie('showSubTitles', value);
|
||||
// Get the sub-titles
|
||||
var subTitles = getElementsHavingName('div', 'subTitle');
|
||||
var subTitles = getElementsHavingName(tag, 'subTitle');
|
||||
if (subTitles.length == 0) return;
|
||||
// Define the display style depending on p_tag.
|
||||
var displayStyle = 'inline';
|
||||
if (tag == 'tr') displayStyle = 'table-row';
|
||||
for (var i=0; i < subTitles.length; i++) {
|
||||
if (value == 'true') subTitles[i].style.display = 'inline';
|
||||
if (value == 'true') subTitles[i].style.display = displayStyle;
|
||||
else subTitles[i].style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
// Function that toggles the value for showing/hiding sub-titles.
|
||||
function toggleSubTitles() {
|
||||
function toggleSubTitles(tag) {
|
||||
// Get the current value
|
||||
var value = readCookie('showSubTitles');
|
||||
if (value == null) value = 'true';
|
||||
// Toggle the value
|
||||
var newValue = 'true';
|
||||
if (value == 'true') newValue = 'false';
|
||||
setSubTitles(newValue);
|
||||
if (!tag) tag = 'div';
|
||||
setSubTitles(newValue, tag);
|
||||
}
|
||||
|
||||
// Functions used for master/slave relationships between widgets
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue