[Jifty-commit] r6645 - in jifty/trunk: lib/Jifty

Jifty commits jifty-commit at lists.jifty.org
Tue Mar 17 18:24:00 EDT 2009


Author: sartak
Date: Tue Mar 17 18:24:00 2009
New Revision: 6645

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/CurrentUser.pm

Log:
 r81332 at onn:  sartak | 2009-03-17 17:37:50 -0400
 CurrentUser->javascript_config


Modified: jifty/trunk/lib/Jifty/CurrentUser.pm
==============================================================================
--- jifty/trunk/lib/Jifty/CurrentUser.pm	(original)
+++ jifty/trunk/lib/Jifty/CurrentUser.pm	Tue Mar 17 18:24:00 2009
@@ -196,6 +196,20 @@
     return($self->user_object->brief_description(@_));
 }
 
+=head2 javascript_config
+
+Returns a hashref of javascript config to be included on each page.
+
+=cut
+
+sub javascript_config {
+    my $self = shift;
+
+    return {
+        start_weekday => 0, # calendars display with Sunday as first day
+    };
+}
+
 =head2 auth_token
 
 Return a string which proves that the user is who they claim to be.  A


More information about the Jifty-commit mailing list