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

Add functionality to change the title/name of a topic/section using AJAX

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: Future Dev
    • Fix Version/s: None
    • Component/s: Course, JavaScript
    • Labels:
    • Testing Instructions:
      Hide

      With a course in editing mode

      • Ensure that the icon placeholder is added. It should appear to the right of each section title
      • Click on the icon - a popup prompt should appear asking for the new title
      • Try a new title
        • Confirm that the title updates on the page
      • Refresh the page
        • Confirm that the title appears on the freshly loaded page
      • Try the update again - this time set an empty string
        • Confirm that the string does not change
      • Refresh the page
        • Confirm that the string still hasn't changed
      • Try the update again - this time set a string of ' ' (space)
        • Confirm that the string does not change
      • Refresh the page
        • Confirm that the string still hasn't changed
      • Try the update again - this time click cancel instead
        • Confirm that the string does not change
      • Refresh the page
        • Confirm that the string still hasn't changed
      • Enable the multilang filter and set it to apply to Content and Headings
      • Try a new title: <span lang="DE" class="multilang">Deutsche</span><span lang="EN" class="multilang">English (UK)</span><span lang="AU" lang="multilang">Australian English</span>
        • Confirm that the title on the page appears as English (UK) (or whatever language you're using)
      • Refresh the page
        • Confirm that the title appears on the freshly loaded page
      • Try a new title: "<!-- This is a comment -->"
        • Confirm that the string does not change
      • Refresh the page
        • Confirm that the string still hasn't changed
      • Try a new title: "<!-- This is a comment --> This is not a comment"
        • Confirm that the title on the page appears as "This is not a comment"
      • Refresh the page
        • Confirm that the title appears on the freshly loaded page
      Show
      With a course in editing mode Ensure that the icon placeholder is added. It should appear to the right of each section title Click on the icon - a popup prompt should appear asking for the new title Try a new title Confirm that the title updates on the page Refresh the page Confirm that the title appears on the freshly loaded page Try the update again - this time set an empty string Confirm that the string does not change Refresh the page Confirm that the string still hasn't changed Try the update again - this time set a string of ' ' (space) Confirm that the string does not change Refresh the page Confirm that the string still hasn't changed Try the update again - this time click cancel instead Confirm that the string does not change Refresh the page Confirm that the string still hasn't changed Enable the multilang filter and set it to apply to Content and Headings Try a new title: <span lang="DE" class="multilang">Deutsche</span><span lang="EN" class="multilang">English (UK)</span><span lang="AU" lang="multilang">Australian English</span> Confirm that the title on the page appears as English (UK) (or whatever language you're using) Refresh the page Confirm that the title appears on the freshly loaded page Try a new title: "<!-- This is a comment -->" Confirm that the string does not change Refresh the page Confirm that the string still hasn't changed Try a new title: "<!-- This is a comment --> This is not a comment" Confirm that the title on the page appears as "This is not a comment" Refresh the page Confirm that the title appears on the freshly loaded page
    • Pull from Repository:
    • Pull Master Branch:
      MDL-33947-master-1

      Description

      Same as MDL-31215 but for topic/section names (as it works so well for resources)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: