|
|
|
@ -35,42 +35,30 @@ function personInUp ( |
|
|
|
var blockElement = titleElement.parentNode; |
|
|
|
var dataElement = blockElement.getElementsByTagName ('div')[1]; |
|
|
|
|
|
|
|
if (dataElement.style.display == 'none') |
|
|
|
{ |
|
|
|
dataElement.style.display = 'block'; |
|
|
|
imgElement.src = arrDown.getImgUrl (titleElement); |
|
|
|
var insBox = document.getElementById (this.insBox); |
|
|
|
var person = (insBox.checked == true)? this.newPerson: this.person; |
|
|
|
|
|
|
|
switch (titleId) |
|
|
|
{ |
|
|
|
case 'title_photographer': |
|
|
|
if (this.person._photographerId != -1) |
|
|
|
this.person.photographerId = this.person._photographerId; |
|
|
|
else |
|
|
|
this.person.photographerId = 0; |
|
|
|
var id = 'photographerId'; |
|
|
|
var _id = '_photographerId'; |
|
|
|
break; |
|
|
|
|
|
|
|
case 'title_owner': |
|
|
|
if (this.person._ownerId != -1) |
|
|
|
this.person.ownerId = this.person._ownerId; |
|
|
|
else |
|
|
|
this.person.ownerId = 0; |
|
|
|
var id = 'ownerId'; |
|
|
|
var _id = '_ownerId'; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
dataElement.style.display = 'none'; |
|
|
|
imgElement.src = arrRight.getImgUrl (titleElement); |
|
|
|
|
|
|
|
switch (titleId) |
|
|
|
{ |
|
|
|
case 'title_photographer': |
|
|
|
this.person.photographerId = -1; |
|
|
|
break; |
|
|
|
if (dataElement.style.display == 'none') |
|
|
|
if (person[_id] != -1) |
|
|
|
person[id] = person[_id]; |
|
|
|
else |
|
|
|
person[id] = 0; |
|
|
|
else |
|
|
|
person[id] = -1; |
|
|
|
|
|
|
|
case 'title_owner': |
|
|
|
this.person.ownerId = -1; |
|
|
|
} |
|
|
|
} |
|
|
|
this.un_fold (person[id], dataElement) |
|
|
|
} |
|
|
|
|
|
|
|
this.de_activate = function (field) |
|
|
|
@ -88,17 +76,26 @@ function personInUp ( |
|
|
|
|
|
|
|
this.un_fold = function (id, element) |
|
|
|
{ |
|
|
|
title = element.parentNode.getElementsByTagName ('div')[0]; |
|
|
|
img = title.getElementsByTagName ('img')[0]; |
|
|
|
var title = element.parentNode.getElementsByTagName ('div')[0]; |
|
|
|
var img = title.getElementsByTagName ('img')[0]; |
|
|
|
|
|
|
|
var classes = ''; |
|
|
|
var _classes = title.className.split (' '); |
|
|
|
|
|
|
|
for (c in _classes) |
|
|
|
if (_classes[c][0] != 'f') |
|
|
|
classes += ' ' + _classes[c]; |
|
|
|
|
|
|
|
if (id != -1) |
|
|
|
{ |
|
|
|
element.style.display = 'block'; |
|
|
|
title.className = classes + ' f-grp-head1'; |
|
|
|
img.src = this.arrDown.getImgUrl (title); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
element.style.display = 'none'; |
|
|
|
title.className = classes + ' f-grp-head-unset1'; |
|
|
|
img.src = this.arrRight.getImgUrl (title); |
|
|
|
} |
|
|
|
} |
|
|
|
|