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

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

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • Future Dev
    • Course, JavaScript
    • MDL-33947-master-1
    • 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

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

            Unassigned Unassigned
            lucywalshaw Lucy Walshaw
            Sam Hemelryk Sam Hemelryk
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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