FCLT#59401 Single page als gebouwdashboard - prototype Facilitor 2020
svn path=/Website/trunk/; revision=45728
This commit is contained in:
@@ -589,7 +589,7 @@ function setParentSelectedClass(parms) {
|
||||
function setChildSelectedClass(parms) {
|
||||
"use strict";
|
||||
var button;
|
||||
var items = $("button div[name=" + parms.name + "][recid=" + parms.$this.attr("recid") + "]", parms.context);
|
||||
var items = $("button div[name=" + parms.name + "][recid=" + parms.$this.attr("recid") + "]", parms.parent);
|
||||
items
|
||||
.each(
|
||||
function() {
|
||||
@@ -606,6 +606,26 @@ function setChildSelectedClass(parms) {
|
||||
);
|
||||
return items;
|
||||
}
|
||||
// set color of child-buttons to color of parent-button when a child-button has no specific color of it's own
|
||||
function setChildrenColor(parms) {
|
||||
"use strict";
|
||||
var $this, parent;
|
||||
var items = $("button:not([color]) div[name=" + parms.name + "]", parms.context);
|
||||
items
|
||||
.each(
|
||||
function() {
|
||||
$this = $(this);
|
||||
// parent button has a specific colour
|
||||
parent = $("button[recid=" + $this.attr("recid") + "]", parms.parent);
|
||||
if (parent.length) {
|
||||
$this.closest("button")
|
||||
.attr("color", parent.attr("color"))
|
||||
.css({ backgroundColor: parent.attr("color") }
|
||||
);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
// save recid's of selected buttons in [ context ]
|
||||
function saveSelectedbuttonIds(parms) {
|
||||
"use strict";
|
||||
|
||||
Reference in New Issue
Block a user