equal
deleted
inserted
replaced
47 changeFormFieldsWidth(gICommentForm['formId'], iCommentWidth) ; |
47 changeFormFieldsWidth(gICommentForm['formId'], iCommentWidth) ; |
48 |
48 |
49 //toc |
49 //toc |
50 //For some reasons: gToc['overlay'].get('boundingBox').setStyle('width', iCommentWidth + 'px'); |
50 //For some reasons: gToc['overlay'].get('boundingBox').setStyle('width', iCommentWidth + 'px'); |
51 // does not work when the div.c-toc has a fixed position. |
51 // does not work when the div.c-toc has a fixed position. |
52 document.getElementsByClassName('c-toc')[0].style.width = iCommentWidth + 'px'; |
52 document.getElementById('the-toc').style.width = iCommentWidth + 'px'; |
53 |
53 |
54 if (gNewReply) |
54 if (gNewReply) |
55 changeFormFieldsWidth(gNewReply['ids']['formId'], iCommentWidth) ; |
55 changeFormFieldsWidth(gNewReply['ids']['formId'], iCommentWidth) ; |
56 if (gEdit) |
56 if (gEdit) |
57 changeFormFieldsWidth(gEdit['ids']['formId'], iCommentWidth) ; |
57 changeFormFieldsWidth(gEdit['ids']['formId'], iCommentWidth) ; |