Select 'title' text on creation of new page

Bug #1764235 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Low
Unassigned

Bug Description

When first creating a page the 'Untitled' title is shown and the focus is on that field.

It would be better the text within the field is also selected making it easier to change the title.

This should only be needed on first creation as that time we most likely want to change the title

Robert Lyon (robertl-9)
Changed in mahara:
status: New → In Progress
importance: Undecided → Low
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Or should we remove the "Untitled" altogether? When you create a collection, there is no default title there.

Revision history for this message
Steven (stevens-q) wrote :

Environment tested: Master
Browser tested: Chrome

===================
Manual Test Script
===================

Test steps:

1. User log in
2. User browse to Main menu > Portfolio > Pages and collections
3. Create a new page by clicking the add button and then page button
4. Confirm that the Page is loaded with the default text in the "Page title" field highlighted in the following browsers:
-- a. Linux Chrome ✘
-- b. Win 10 Chrome ✔
-- c. Linux Chromium ✔
-- d. Linux Firefox ✔
-- e. Win 10 Firefox ✔
-- f. Win 10 IE 11 ✔
-- g. Sauce Labs - Mac OS 10.13 Safari ✔
5. User edit existing page by clicking existin page, then clicking edit and then clicking settings
6. Confirm that the text in the "Page title" field, is not highlighted in the following browsers:
-- a. Linux Chrome ✔
-- b. Win 10 Chrome ✔
-- c. Linux Chromium ✔
-- d. Linux Firefox ✔
-- e. Win 10 Firefox ✔
-- f. Win 10 IE 11 ✔
-- g. Sauce Labs - Mac OS 10.13 Safari ✔

Catalyst QA

NOTE: Although Linux Chrome failed testing, the code fix is only a UX enhancement and does not affect a user from changing a page title.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/8802
Committed: https://git.mahara.org/mahara/mahara/commit/317e895b4e870d9cf0748f9b837a6935cb85b106
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 317e895b4e870d9cf0748f9b837a6935cb85b106
Author: Robert Lyon <email address hidden>
Date: Fri Apr 13 16:53:32 2018 +1200

Bug 1764235: Auto focus and select text on new page creation

When first making a page it would be nice to have the default
'Untitled' text to be selected by default to make it easier to change
the title

behatnotneeded

Change-Id: Idc8bfe2c5377c9e62a72f86e7ea6d95712a95d46
Signed-off-by: Robert Lyon <email address hidden>

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
milestone: none → 18.10.0
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.