Commit 9b3bc0b3cdbd52681f3b167cf39d3a3c67d2cc1e
1 parent
3d4e0453
photographer und owner werden mit dem de/aktivieren der entsprechenden Bloecke auch de/aktiviert
Showing
2 changed files
with
41 additions
and
47 deletions
| @@ -26,19 +26,19 @@ function c_person (personId, photographerId, ownerId, firstname, surname, | @@ -26,19 +26,19 @@ function c_person (personId, photographerId, ownerId, firstname, surname, | ||
| 26 | { | 26 | { |
| 27 | if (this.personId != -1) | 27 | if (this.personId != -1) |
| 28 | { | 28 | { |
| 29 | - this.personId = -1; | ||
| 30 | - this.photographerId = -1; | ||
| 31 | - this.ownerId = -1; | ||
| 32 | - this.firstname = ''; | ||
| 33 | - this.surname = ''; | ||
| 34 | - this.company = ''; | ||
| 35 | - this.email = ''; | ||
| 36 | - this.url = ''; | ||
| 37 | - this.cameraId = -1; | ||
| 38 | - this.wmWidth = ''; | ||
| 39 | - this.wmHeight = ''; | ||
| 40 | - this.wmXPos = ''; | ||
| 41 | - this.wmYPos = ''; | 29 | + this.personId = this._personId = -1; |
| 30 | + this.photographerId = this._photographerId = -1; | ||
| 31 | + this.ownerId = this._ownerId = -1; | ||
| 32 | + this.firstname = this._firstname = ''; | ||
| 33 | + this.surname = this._surname = ''; | ||
| 34 | + this.company = this._company = ''; | ||
| 35 | + this.email = this._email = ''; | ||
| 36 | + this.url = this._url = ''; | ||
| 37 | + this.cameraId = this._cameraId = -1; | ||
| 38 | + this.wmWidth = this._wmWidth = ''; | ||
| 39 | + this.wmHeight = this._wmHeight = ''; | ||
| 40 | + this.wmXPos = this._wmXPos = ''; | ||
| 41 | + this.wmYPos = this._wmYPos = ''; | ||
| 42 | 42 | ||
| 43 | if (this.personForm != null) | 43 | if (this.personForm != null) |
| 44 | this.personForm.updateForm (); | 44 | this.personForm.updateForm (); |
| @@ -47,19 +47,19 @@ function c_person (personId, photographerId, ownerId, firstname, surname, | @@ -47,19 +47,19 @@ function c_person (personId, photographerId, ownerId, firstname, surname, | ||
| 47 | 47 | ||
| 48 | this.reset = function () | 48 | this.reset = function () |
| 49 | { | 49 | { |
| 50 | - this.personId = -1; | ||
| 51 | - this.photographerId = -1; | ||
| 52 | - this.ownerId = -1; | ||
| 53 | - this.firstname = ''; | ||
| 54 | - this.surname = ''; | ||
| 55 | - this.company = ''; | ||
| 56 | - this.email = ''; | ||
| 57 | - this.url = ''; | ||
| 58 | - this.cameraId = -1; | ||
| 59 | - this.wmWidth = ''; | ||
| 60 | - this.wmHeight = ''; | ||
| 61 | - this.wmXPos = ''; | ||
| 62 | - this.wmYPos = ''; | 50 | + this.personId = this._personId; |
| 51 | + this.photographerId = this._photographerId; | ||
| 52 | + this.ownerId = this._ownerId; | ||
| 53 | + this.firstname = this._firstname; | ||
| 54 | + this.surname = this._surname; | ||
| 55 | + this.company = this._company; | ||
| 56 | + this.email = this._email; | ||
| 57 | + this.url = this._url; | ||
| 58 | + this.cameraId = this._cameraId; | ||
| 59 | + this.wmWidth = this._wmWidth; | ||
| 60 | + this.wmHeight = this._wmHeight; | ||
| 61 | + this.wmXPos = this._wmXPos; | ||
| 62 | + this.wmYPos = this._wmYPos; | ||
| 63 | 63 | ||
| 64 | if (this.personForm != null) | 64 | if (this.personForm != null) |
| 65 | this.personForm.updateForm (); | 65 | this.personForm.updateForm (); |
| @@ -69,19 +69,19 @@ function c_person (personId, photographerId, ownerId, firstname, surname, | @@ -69,19 +69,19 @@ function c_person (personId, photographerId, ownerId, firstname, surname, | ||
| 69 | { | 69 | { |
| 70 | if (this.personId != p.personId) | 70 | if (this.personId != p.personId) |
| 71 | { | 71 | { |
| 72 | - this.personId = p.personId; | ||
| 73 | - this.photographerId = p.photographerId; | ||
| 74 | - this.ownerId = p.ownerId; | ||
| 75 | - this.firstname = p.firstname; | ||
| 76 | - this.surname = p.surname; | ||
| 77 | - this.company = p.company; | ||
| 78 | - this.email = p.email; | ||
| 79 | - this.url = p.url; | ||
| 80 | - this.cameraId = p.cameraId; | ||
| 81 | - this.wmWidth = p.wmWidth; | ||
| 82 | - this.wmHeight = p.wmHeight; | ||
| 83 | - this.wmXPos = p.wmXPos; | ||
| 84 | - this.wmYPos = p.wmYPos; | 72 | + this.personId = this._personId = p.personId; |
| 73 | + this.photographerId = this._photographerId = p.photographerId; | ||
| 74 | + this.ownerId = this._ownerId = p.ownerId; | ||
| 75 | + this.firstname = this._firstname = p.firstname; | ||
| 76 | + this.surname = this._surname = p.surname; | ||
| 77 | + this.company = this._company = p.company; | ||
| 78 | + this.email = this._email = p.email; | ||
| 79 | + this.url = this._url = p.url; | ||
| 80 | + this.cameraId = this._cameraId = p.cameraId; | ||
| 81 | + this.wmWidth = this._wmWidth = p.wmWidth; | ||
| 82 | + this.wmHeight = this._wmHeight = p.wmHeight; | ||
| 83 | + this.wmXPos = this._wmXPos = p.wmXPos; | ||
| 84 | + this.wmYPos = this._wmYPos = p.wmYPos; | ||
| 85 | 85 | ||
| 86 | if (this.personForm != null) | 86 | if (this.personForm != null) |
| 87 | this.personForm.updateForm (); | 87 | this.personForm.updateForm (); |
| @@ -64,17 +64,11 @@ function personInUp ( | @@ -64,17 +64,11 @@ function personInUp ( | ||
| 64 | switch (titleId) | 64 | switch (titleId) |
| 65 | { | 65 | { |
| 66 | case 'title_photographer': | 66 | case 'title_photographer': |
| 67 | - if (this.person._photographerId != -1) | ||
| 68 | - this.person.photographerId = this.person._photographerId; | ||
| 69 | - else | ||
| 70 | - this.person.photographerId = 0; | 67 | + this.person.photographerId = -1; |
| 71 | break; | 68 | break; |
| 72 | 69 | ||
| 73 | case 'title_owner': | 70 | case 'title_owner': |
| 74 | - if (this.person._ownerId != -1) | ||
| 75 | - this.person.ownerId = this.person._ownerId; | ||
| 76 | - else | ||
| 77 | - this.person.ownerId = 0; | 71 | + this.person.ownerId = -1; |
| 78 | } | 72 | } |
| 79 | } | 73 | } |
| 80 | } | 74 | } |
Please
register
or
login
to post a comment