From 332e4901478bf76705c7175e4af10b91d4c3b30f Mon Sep 17 00:00:00 2001 From: Patrick Nelson Date: Mon, 5 Oct 2015 11:22:36 -0400 Subject: [PATCH] FIX (partial) for #1288 where non-submit buttons are being activated on "enter" key press (relates to framework issue at https://github.com/silverstripe/silverstripe-framework/issues/3181). --- javascript/CMSMain.EditForm.js | 1 + templates/Includes/CMSPagesController_ContentToolActions.ss | 2 +- templates/forms/SiteTreeURLSegmentField.ss | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/javascript/CMSMain.EditForm.js b/javascript/CMSMain.EditForm.js index 399f4d96..78dfcdd9 100644 --- a/javascript/CMSMain.EditForm.js +++ b/javascript/CMSMain.EditForm.js @@ -122,6 +122,7 @@ updateURLFromTitle = $(' <% end_if %> diff --git a/templates/forms/SiteTreeURLSegmentField.ss b/templates/forms/SiteTreeURLSegmentField.ss index 619875e9..c03f5ae2 100644 --- a/templates/forms/SiteTreeURLSegmentField.ss +++ b/templates/forms/SiteTreeURLSegmentField.ss @@ -2,16 +2,16 @@ $URL -
- - <% if $HelpText %>

$HelpText

<% end_if %>