|
|
|
@ -28,6 +28,57 @@ function personInUp ( |
|
|
|
|
|
|
|
person.connect (this); |
|
|
|
|
|
|
|
this.showHideBlock = function (titleId) |
|
|
|
{ |
|
|
|
var titleElement = document.getElementById (titleId); |
|
|
|
var imgElement = titleElement.getElementsByTagName ('img')[0]; |
|
|
|
var blockElement = titleElement.parentNode; |
|
|
|
var dataElement = blockElement.getElementsByTagName ('div')[1]; |
|
|
|
|
|
|
|
if (dataElement.style.display == 'none') |
|
|
|
{ |
|
|
|
dataElement.style.display = 'block'; |
|
|
|
imgElement.src = arrDown.getImgUrl (titleElement); |
|
|
|
|
|
|
|
switch (titleId) |
|
|
|
{ |
|
|
|
case 'title_photographer': |
|
|
|
if (this.person._photographerId != -1) |
|
|
|
this.person.photographerId = this.person._photographerId; |
|
|
|
else |
|
|
|
this.person.photographerId = 0; |
|
|
|
break; |
|
|
|
|
|
|
|
case 'title_owner': |
|
|
|
if (this.person._ownerId != -1) |
|
|
|
this.person.ownerId = this.person._ownerId; |
|
|
|
else |
|
|
|
this.person.ownerId = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
dataElement.style.display = 'none'; |
|
|
|
imgElement.src = arrRight.getImgUrl (titleElement); |
|
|
|
|
|
|
|
switch (titleId) |
|
|
|
{ |
|
|
|
case 'title_photographer': |
|
|
|
if (this.person._photographerId != -1) |
|
|
|
this.person.photographerId = this.person._photographerId; |
|
|
|
else |
|
|
|
this.person.photographerId = 0; |
|
|
|
break; |
|
|
|
|
|
|
|
case 'title_owner': |
|
|
|
if (this.person._ownerId != -1) |
|
|
|
this.person.ownerId = this.person._ownerId; |
|
|
|
else |
|
|
|
this.person.ownerId = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.de_activate = function (field) |
|
|
|
{ |
|
|
|
var updBox = document.getElementById (this.updBox); |
|
|
|
@ -166,46 +217,26 @@ function personInUp ( |
|
|
|
|
|
|
|
this.setCameraId = function (value) |
|
|
|
{ |
|
|
|
var person = this.selectPerson (); |
|
|
|
|
|
|
|
person.cameraId = value; |
|
|
|
if (person == this.newPerson) |
|
|
|
person.photographerId = 0; |
|
|
|
this.selectPerson ().cameraId = value; |
|
|
|
} |
|
|
|
|
|
|
|
this.setWmWidth = function (value) |
|
|
|
{ |
|
|
|
var person = this.selectPerson (); |
|
|
|
|
|
|
|
person.wmWidth = value; |
|
|
|
if (person == this.newPerson) |
|
|
|
person.ownerId = 0; |
|
|
|
this.selectPerson ().wmWidth = value; |
|
|
|
} |
|
|
|
|
|
|
|
this.setWmHeight = function (value) |
|
|
|
{ |
|
|
|
var person = this.selectPerson (); |
|
|
|
|
|
|
|
person.wmHeight = value; |
|
|
|
if (person == this.newPerson) |
|
|
|
person.ownerId = 0; |
|
|
|
this.selectPerson ().wmHeight = value; |
|
|
|
} |
|
|
|
|
|
|
|
this.setWmXPos = function (value) |
|
|
|
{ |
|
|
|
var person = this.selectPerson (); |
|
|
|
|
|
|
|
person.wmXPos = value; |
|
|
|
if (person == this.newPerson) |
|
|
|
person.ownerId = 0; |
|
|
|
this.selectPerson ().wmXPos = value; |
|
|
|
} |
|
|
|
|
|
|
|
this.setWmYPos = function (value) |
|
|
|
{ |
|
|
|
var person = this.selectPerson (); |
|
|
|
|
|
|
|
person.wmYPos = value; |
|
|
|
if (person == this.newPerson) |
|
|
|
person.ownerId = 0; |
|
|
|
this.selectPerson ().wmYPos = value; |
|
|
|
} |
|
|
|
} |