From 9a17e3494fa3790325b225017122e1d770c19235 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 11 Apr 2013 10:18:17 +0200 Subject: [PATCH 1/2] DateField.js event selector regression (fixes #1528) See 19a8545076f477d15aa5ed7fe52af020f43d28ab --- javascript/DateField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/DateField.js b/javascript/DateField.js index 13d901d54..ceb54df4c 100644 --- a/javascript/DateField.js +++ b/javascript/DateField.js @@ -26,7 +26,7 @@ } }); - $(document).on("click", "field.date input.text,.fieldholder-small input.text.date", function() { + $(document).on("click", ".field.date input.text,.fieldholder-small input.text.date", function() { $(this).ssDatepicker(); if($(this).data('datepicker')) { From 8033955d35295fde5e47b20aa5893c772e4eb98a Mon Sep 17 00:00:00 2001 From: SticksTucker Date: Thu, 18 Apr 2013 13:22:42 +1000 Subject: [PATCH 2/2] Include AllPages() form method to $allowed_actions --- docs/en/reference/grid-field.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/reference/grid-field.md b/docs/en/reference/grid-field.md index 6d4aeb2ff..a3c0ac114 100644 --- a/docs/en/reference/grid-field.md +++ b/docs/en/reference/grid-field.md @@ -42,7 +42,7 @@ Here is an example where we display a basic gridfield with the default settings: :::php class GridController extends Page_Controller { - static $allowed_actions = array('index'); + static $allowed_actions = array('index', 'AllPages'); public function index(SS_HTTPRequest $request) { $this->Content = $this->AllPages(); @@ -263,4 +263,4 @@ A GridFieldComponent sets and gets data from the GridState. ## Related * [ModelAdmin: A UI driven by GridField](/reference/modeladmin) - * [Tutorial 5: Dataobject Relationship Management](/tutorials/5-dataobject-relationship-management) \ No newline at end of file + * [Tutorial 5: Dataobject Relationship Management](/tutorials/5-dataobject-relationship-management)