[Rt-commit] rt branch, 4.0/mobile-login-callbacks, created. rt-4.0.10-79-g04387ee

Thomas Sibley trs at bestpractical.com
Mon Mar 11 19:56:24 EDT 2013


The branch, 4.0/mobile-login-callbacks has been created
        at  04387ee2c6b2232df41d8ea0986e26edee74fa0c (commit)

- Log -----------------------------------------------------------------
commit 04387ee2c6b2232df41d8ea0986e26edee74fa0c
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Mon Mar 11 16:35:43 2013 -0700

    Add callbacks for the mobile login form equivalent to the non-mobile form

diff --git a/share/html/m/_elements/login b/share/html/m/_elements/login
index 5fbdb9a..f6213d0 100644
--- a/share/html/m/_elements/login
+++ b/share/html/m/_elements/login
@@ -45,6 +45,7 @@
 %# those contributions and any derivatives thereof.
 %#
 %# END BPS TAGGED BLOCK }}}
+% $m->callback( %ARGS, CallbackName => 'Header' );
 <&| /m/_elements/wrapper, show_home_button => 0 &>
 <style>
 <& /m/_elements/raw_style &>
@@ -58,6 +59,8 @@
     actions     => $actions,
 &>
 
+% $m->callback( %ARGS, CallbackName => 'BeforeForm' );
+
 <div id="login-box">
 <&| /Widgets/TitleBox, title => loc('Login'), hideable => 0 &>
 
@@ -87,10 +90,16 @@ if (window.location.hash) {
     }
 }
 </script>
+
+% $m->callback( %ARGS );
+
 </form>
 % }
 </&>
 </div><!-- #login-box -->
+
+% $m->callback( %ARGS, CallbackName => 'AfterForm' );
+
 </div><!-- #login-body -->
 <& /m/_elements/full_site_link &>
 </&>

-----------------------------------------------------------------------


More information about the Rt-commit mailing list