[dw-free] http://bugs.dwscoalition.org/show_bug.cgi?id=4292
[commit: http://hg.dwscoalition.org/dw-free/rev/00c464747a17]
http://bugs.dwscoalition.org/show_bug.cgi?id=4292
Include the JS files, add necessary classes.
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=4292
Include the JS files, add necessary classes.
Patch by
Files modified:
- schemes/common.tt
--------------------------------------------------------------------------------
diff -r a2a441e36fc9 -r 00c464747a17 schemes/common.tt
--- a/schemes/common.tt Wed Feb 22 15:08:24 2012 +0800
+++ b/schemes/common.tt Wed Feb 22 15:17:44 2012 +0800
@@ -27,6 +27,16 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+ [%- # block.need_res below includes files for the individual pages
+ # this need_res is for the sake of the login form on the theme
+ dw.need_res( "js/md5.js"
+ "js/login.js"
+ );
+ dw.need_res( { group => 'jquery' }
+ "js/md5.js"
+ "js/login-jquery.js"
+ );
+ -%]
[%- PROCESS block.need_res -%]
[% dw_scheme.res_includes %]
[% sections.head %]
@@ -93,7 +103,7 @@
[%- -%]</div>
[%- ELSE -%]
[%- chal = dw_scheme.challenge_generate(300) -%]
- [%- -%]<form action='[% site.root %]/login?ret=1' method='post'>
+ [%- -%]<form action='[% site.root %]/login?ret=1' method='post' class='lj_login_form'>
[%- -%]<input type="hidden" name="returnto" value="[% get.returnto | html %]" />
[%- -%]<input type='hidden' name='chal' class='lj_login_chal' value='[% chal %]' />
<input type='hidden' name='response' class='lj_login_response' value='' />
@@ -102,7 +112,7 @@
[%- -%]<td class='input-cell' colspan='2'><input name="user" id="login_user" size="20" maxlength="27" tabindex="1" aria-required="true" />
[%- %] <a href='[% site.root %]/openid/[% IF get.returnto %]?returnto=[% get.returnto | html %][% END %]' tabindex=5>[% 'sitescheme.accountlinks.login.openid' | ml %]</a></td></tr>
[%- -%]<tr><td><label for='login_password'>[% 'sitescheme.accountlinks.login.password' | ml %]</label></td>
- [%- -%]<td class='input-cell' colspan='2'><input type="password" name="password" id="login_password" size="20" tabindex="2" aria-required="true">
+ [%- -%]<td class='input-cell' colspan='2'><input type="password" name="password" id="login_password" size="20" tabindex="2" aria-required="true" class="lj_login_password">
[%- %] <a href='[% site.root %]/lostinfo' tabindex=6>[% 'sitescheme.accountlinks.login.forgotpassword' | ml %]</a></td></tr>
[%- -%]<tr><td> </td>
[%- -%]<td class='remember-me-cell'>
--------------------------------------------------------------------------------
