git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22794
e93f8b46-1217-0410-a6f0-
8f06a7374b81
sql_for_field(field, '=', others, db_table, 'user_id') +
')'
else
+ Rails.logger.debug "****"*50
+ Rails.logger.debug me.inspect
+ exit 1
"SELECT #{db_table}.watchable_id FROM #{db_table} " +
"WHERE #{db_table}.watchable_type='Issue' AND " +
sql_for_field(field, '=', me, db_table, 'user_id')
} else {
$("#journal-<%= @journal.id %>-notes").after('<%= escape_javascript(render :partial => 'notes_form') %>');
}
+
+// Focus on the textarea
+(() => {
+ const textarea = $("#journal-<%= @journal.id %>-form .wiki-edit");
+ if (textarea.length > 0) {
+ textarea.focus();
+ const textareaLength = textarea.val().length;
+ textarea.get(0).setSelectionRange(textareaLength, textareaLength);
+ }
+})();