From 700ef496d795dbb5e7f17805b27b44f7e8374ec8 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 14 Jun 2016 11:23:26 -0600 Subject: [PATCH] For new events with title pre-set, highlight the title for easy editing --- calendar/js/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/calendar/js/app.js b/calendar/js/app.js index b0e7e2b4aa..cc60adde88 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -225,6 +225,12 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend( } } this.alarm_custom_date(); + + // If title is pre-filled for a new (no ID) event, highlight it + if(content.data && !content.data.id && content.data.title) + { + this.et2.getWidgetById('title').input.select(); + } break; case 'calendar.freetimesearch':