Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-33186

comment.js attempts to act on textarea when it's not there

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.6, 2.3
    • Fix Version/s: 2.3
    • Component/s: Comments
    • Labels:

      Description

      Create a new comments block in a public location
      Log off
      Refresh the page with a JS console open:

      Uncaught TypeError: Cannot call method 'get' of null
      proto.erroryui.js:1147
      proto._notifyyui.js:838
      proto._use.handleLoaderyui.js:971
      Y.Loader._finishyui.js:7411
      Y.Loader._onSuccessyui.js:7456
      Y.Loader._insert.completeyui.js:7653
      Y.Loader._insert.Y.Get.js.onSuccessyui.js:7715
      Transaction._finishyui.js:4624
      Transaction._nextyui.js:4806
      Transaction._progressyui.js:4913
      onLoad
      

      Looks like toggle_textarea tries to act upon the comment's textarea even if it doesn't exist

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    25/Jun/12