From 902c66d490198d4da19268d31c23d78b2508d045 Mon Sep 17 00:00:00 2001 From: yystopf Date: Thu, 28 Jul 2022 18:14:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9:=20oauth2=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=A2=9E=E5=8A=A0=E9=94=99=E8=AF=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/oauth2/create.js.erb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/views/oauth2/create.js.erb diff --git a/app/views/oauth2/create.js.erb b/app/views/oauth2/create.js.erb new file mode 100644 index 000000000..8850124d8 --- /dev/null +++ b/app/views/oauth2/create.js.erb @@ -0,0 +1,7 @@ +<%if @error.present?%> +var alertDiv = $('
<%= @error[:msg]%>
') +$("#container").prepend(alertDiv) +setTimeout(function() { + $('.alert').remove(); +}, 3000); +<%end%> \ No newline at end of file