Merge pull request #265 from ben-denham/event-title-focus

Event title is no longer selected after being focused.
master
Jan-Christoph Borchardt 2013-12-28 10:11:36 -08:00
commit deb6f8dc9b
1 changed files with 3 additions and 0 deletions

View File

@ -136,6 +136,9 @@ Calendar={
$('#sendemailbutton').click(function() {
Calendar.Util.sendmail($(this).attr('data-eventid'), $(this).attr('data-location'), $(this).attr('data-description'), $(this).attr('data-dtstart'), $(this).attr('data-dtend'));
})
// Focus the title, and reset the text value so that it isn't selected.
var val = $('#event-title').val();
$('#event-title').focus().val('').val(val);
},
newEvent:function(start, end, allday){
start = Math.round(start.getTime()/1000);