equal
deleted
inserted
replaced
45 '<a class="c-state-pending c-action" title="' + changeToPending + '" alt="' + changeToPending + '">'+ pending +'</a>' + " " + |
45 '<a class="c-state-pending c-action" title="' + changeToPending + '" alt="' + changeToPending + '">'+ pending +'</a>' + " " + |
46 '<a class="c-state-approved c-action" title="' + changeToApprove + '" alt="' + changeToApprove + '">'+ approved +'</a>' + " " + |
46 '<a class="c-state-approved c-action" title="' + changeToApprove + '" alt="' + changeToApprove + '">'+ approved +'</a>' + " " + |
47 '<a class="c-state-unapproved c-action" title="' + changeToUnapprove + '" alt="' + changeToUnapprove + '">'+ unapproved +'</a>' + " " + |
47 '<a class="c-state-unapproved c-action" title="' + changeToUnapprove + '" alt="' + changeToUnapprove + '">'+ unapproved +'</a>' + " " + |
48 '<a class="c-state-cancel c-action" title="' + cancelChange + '" alt="' + cancelChange + '">' + cancel +'</a>' + " " + |
48 '<a class="c-state-cancel c-action" title="' + cancelChange + '" alt="' + cancelChange + '">' + cancel +'</a>' + " " + |
49 '</div>' + |
49 '</div>' + |
50 '<a class="c-show-scope c-show-iscope c-action" title="'+ showScope + '" alt="' + showScope + '"><em>-</em></a>' + |
50 '<a class="c-show-scope c-action" title="'+ showScope + '" alt="' + showScope + '"><em>-</em></a>' + |
51 '<a class="c-close c-iclose c-action" title="'+ close + '" alt="' + close + '"><em>X</em></a>' + |
51 '<a class="c-close c-action" title="'+ close + '" alt="' + close + '"><em>X</em></a>' + |
52 '</div>', |
52 '</div>', |
53 bodyContent : '<div class="icomment-body">' + |
53 bodyContent : '<div class="icomment-body">' + |
54 '<span class="c-content"></span>' + |
54 '<span class="c-content"></span>' + |
55 '<span class="c-ireplyactions">' + |
55 '<span class="c-ireplyactions">' + |
56 '<a class="c-readreplies c-action" title="'+ showReplies +'" alt="' + showReplies + '">' + showReplies +'</a>' + " " + |
56 '<a class="c-readreplies c-action" title="'+ showReplies +'" alt="' + showReplies + '">' + showReplies +'</a>' + " " + |
210 |
210 |
211 activate:function() { |
211 activate:function() { |
212 // debug !! |
212 // debug !! |
213 // CY.log('activate' + this.commentId) ; |
213 // CY.log('activate' + this.commentId) ; |
214 this.overlay.get('boundingBox').addClass('c-focus-comment') ; |
214 this.overlay.get('boundingBox').addClass('c-focus-comment') ; |
215 this.overlay.get('contentBox').query(".c-close").addClass('c-iclose-focus') ; |
|
216 this.overlay.get('contentBox').query(".c-close").removeClass('c-iclose') ; |
|
217 this.overlay.get('contentBox').query(".c-show-scope").addClass('c-show-iscope-focus') ; |
|
218 this.overlay.get('contentBox').query(".c-show-scope").removeClass('c-show-iscope') ; |
|
219 |
215 |
220 }, |
216 }, |
221 |
217 |
222 deactivate:function() { |
218 deactivate:function() { |
223 // debug !! |
219 // debug !! |
224 // CY.log('deactivate' + this.commentId) ; |
220 // CY.log('deactivate' + this.commentId) ; |
225 this.overlay.get('boundingBox').removeClass('c-focus-comment') ; |
221 this.overlay.get('boundingBox').removeClass('c-focus-comment') ; |
226 this.overlay.get('contentBox').query(".c-close").addClass('c-iclose') ; |
|
227 this.overlay.get('contentBox').query(".c-close").removeClass('c-iclose-focus') ; |
|
228 this.overlay.get('contentBox').query(".c-show-scope").addClass('c-show-iscope') ; |
|
229 this.overlay.get('contentBox').query(".c-show-scope").removeClass('c-show-iscope-focus') ; |
|
230 |
222 |
231 }, |
223 }, |
232 hide:function() { |
224 hide:function() { |
233 // is IComment the top active one ? |
225 // is IComment the top active one ? |
234 if (gIComments.isTopActive(this.commentId)) { // then try to activate next in displayed list |
226 if (gIComments.isTopActive(this.commentId)) { // then try to activate next in displayed list |