[gen] Bugfix for IE in master/slave relationships. Calendar field: added 2 params: 'preCompute' allows to specify a method that is called once every time a month is shown and whose result can be accessed by other methods; 'applicableEvents' allows to specify, for every day, a list of applicable events which can be a sub-set of all aplicable events (or event nothing).
This commit is contained in:
parent
caca61516f
commit
1505264887
4 changed files with 130 additions and 24 deletions
|
@ -217,12 +217,14 @@ function getSlaveInfo(slave, infoType) {
|
|||
|
||||
function getMasterValues(master) {
|
||||
// Returns the list of values that p_master currently has.
|
||||
var res = null;
|
||||
if ((master.tagName == 'INPUT') && (master.type != 'checkbox')) {
|
||||
res = master.value;
|
||||
if ((res[0] == '(') || (res[0] == '[')) {
|
||||
if ((res.charAt(0) == '(') || (res.charAt(0) == '[')) {
|
||||
// There are multiple values, split it
|
||||
values = res.substring(1, res.length-1).split(',');
|
||||
res = [];
|
||||
var v = null;
|
||||
for (var i=0; i < values.length; i++){
|
||||
v = values[i].replace(' ', '');
|
||||
res.push(v.substring(1, v.length-1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue