equal
deleted
inserted
replaced
59 CY.get("#"+gEdit['ids']['changeScopeInputId']+" input").set('checked', false) ; |
59 CY.get("#"+gEdit['ids']['changeScopeInputId']+" input").set('checked', false) ; |
60 // Edit scope and category just for the first comment in a thread |
60 // Edit scope and category just for the first comment in a thread |
61 // => hides these inputs for a reply. |
61 // => hides these inputs for a reply. |
62 if (comment.reply_to_id != null) { |
62 if (comment.reply_to_id != null) { |
63 CY.get("#"+gEdit['ids']['changeScopeInputId']).addClass('displaynone') |
63 CY.get("#"+gEdit['ids']['changeScopeInputId']).addClass('displaynone') |
64 CY.get("#"+gEdit['ids']['categoryInputId']).addClass('displaynone') |
64 if (CY.get("#"+gEdit['ids']['categoryInputId'])) { |
65 CY.get("#"+gEdit['ids']['categoryInputId']).ancestor().addClass('displaynone') |
65 CY.get("#"+gEdit['ids']['categoryInputId']).addClass('displaynone') |
|
66 CY.get("#"+gEdit['ids']['categoryInputId']).ancestor().addClass('displaynone') |
|
67 } |
66 } |
68 } |
67 changeScopeFormClick() ; // to adapt |
69 changeScopeFormClick() ; // to adapt |
68 |
70 |
69 CY.get("#"+gEdit['ids']['nameInputId']).set('value', comment.name) ; |
71 CY.get("#"+gEdit['ids']['nameInputId']).set('value', comment.name) ; |
70 CY.get("#"+gEdit['ids']['emailInputId']).set('value', comment.email) ; |
72 CY.get("#"+gEdit['ids']['emailInputId']).set('value', comment.email) ; |