Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-2625

Making toggle header smarter for when the summary is large

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.9
    • Fix Version/s: None
    • Component/s: Course format: Topcoll
    • Labels:
      None
    • Database:
      Any
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      It would be nice to have the toggle for the topics derived dynamically for the cases when the summary has paragraphs of text in there which is the case at our university. I have written a function that will look for any element with the class name toggle-title and use the inner text of that for the title. If that does not exist it will just use the first 30 chars of the text to populate the title. You might have a better idea for this but i just needed something fast.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gb2048 Gareth J Barnard
              Reporter:
              donkeyx David Binney
              Participants:
              Component watchers:
              Gareth J Barnard
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: