Fix focus deprecation warning
This commit is contained in:
@@ -109,7 +109,7 @@
|
||||
});
|
||||
if ($("[data-legislation-open-phase]").data("legislation-open-phase") !== false) {
|
||||
App.LegislationAnnotatable.highlight("#7fff9a");
|
||||
$("#comments-box textarea").focus();
|
||||
$("#comments-box textarea").trigger("focus");
|
||||
$("#new_legislation_annotation").on("ajax:complete", function(e, data) {
|
||||
if (data.status === 200) {
|
||||
App.LegislationAnnotatable.remove_highlight();
|
||||
|
||||
Reference in New Issue
Block a user