src/cm/media/js/client/c_edit_form.js
changeset 552 ee0c833d1969
parent 532 0bad3613f59d
child 600 fda73ac53450
equal deleted inserted replaced
551:723261fb23fb 552:ee0c833d1969
    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) ;