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

Streamed Chat Locks Send Message Field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 1.6.3, 1.7
    • 1.6.1, 1.6.2
    • None
    • None
    • Linux Apache etc
    • MOODLE_16_STABLE
    • MOODLE_16_STABLE, MOODLE_17_STABLE

      I posted on forum (http://moodle.org/mod/forum/discuss.php?d=53467) , forgot about bug tracker.

      When using streamed chat, the javascript locks the send message field, rendering it unusable:

      I am not really up to speed with javascript, but I made a quick fix (which doesn't refresh the chat screen as soon as it should)

      mod/chat/gui_header_js/insert.php (~60):

      FROM:

      if ($chatuser->version == 'header_js')

      { /// force msg referesh ASAP echo '<script type="text/javascript">parent.jsupdate.location.href = parent.jsupdate.document.anchors[0].href;parent.input.enableForm();</script>'; }

      TO:

      if ($chatuser->version == 'header_js')

      { /// force msg referesh ASAP echo '<script type="text/javascript">parent.input.enableForm();</script>'; }

      So it unlocks the form, (but doesn't update the mesage screen - I don't know enough js to work out why it wasn't workign correctly).

            dougiamas Martin Dougiamas
            poltawski Dan Poltawski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.