Commit 13d10c93 authored by Ivan Tyagov's avatar Ivan Tyagov

Use popup UI style for login logout links for KM.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44455 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9320cd4c
......@@ -238,7 +238,25 @@ $(function() {\n
}\n
});\n
});\n
\n
// login logout links for KM\n
$(\'a[id="login-logout-link"]\').click(function(event) {\n
if($(\'a[id="login-logout-link"]\').attr("href").indexOf("login_form")==-1){\n
// we show popup only for login_form\n
return\n
}\n
event.preventDefault();\n
\n
dialog.erp5_popup({\n
dialog: { title: $(\'label\', this.parentNode.parentNode).text() },\n
load: {\n
url: this.href,\n
method: $.get,\n
}\n
});\n
});\n
\n
\n
// Make the Add gadget dialog work as pop-ups.\n
$(\'a[id="add-gadgets"]\').click(function(event) {\n
event.preventDefault();\n
......
20
\ No newline at end of file
21
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment