From ff13bb8538a2addaebbb9862aa7b99614ead44a1 Mon Sep 17 00:00:00 2001 From: "William R. Otte" Date: Fri, 20 Dec 2013 13:47:25 -0600 Subject: [PATCH] Render the clone URI input field as readonly. Summary: There's no particular reason to allow the user to edit the clone URI field in Diffusion; editing it has no meaning and if you fat finger the keyboard, it's quite possible that the user will either accidentally clear and/or modify the URI before copying (bit me this morning). Adding a readonly attribute to the input field allows the same benefit (URI is easily selectable) while preventing such accidental input. Fixes T4246. Test Plan: Verified that the desired behavior is present in both Chrome, Safari, and Firefox. Field remains selectable with one click, but field is not editable. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: Korvin, epriestley, aran Maniphest Tasks: T4246 Differential Revision: https://secure.phabricator.com/D7810 --- .../diffusion/controller/DiffusionRepositoryController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/diffusion/controller/DiffusionRepositoryController.php b/src/applications/diffusion/controller/DiffusionRepositoryController.php index b415e22f81..f1fa375736 100644 --- a/src/applications/diffusion/controller/DiffusionRepositoryController.php +++ b/src/applications/diffusion/controller/DiffusionRepositoryController.php @@ -531,6 +531,7 @@ final class DiffusionRepositoryController extends DiffusionController { 'value' => (string)$uri, 'class' => 'diffusion-clone-uri', 'sigil' => 'select-on-click', + 'readonly' => 'true', )); $extras = array();