[pLog-svn] r3615 - plog/trunk/templates/admin
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sun Jun 18 19:56:40 GMT 2006
Author: oscar
Date: 2006-06-18 19:56:39 +0000 (Sun, 18 Jun 2006)
New Revision: 3615
Modified:
plog/trunk/templates/admin/editpost.template
plog/trunk/templates/admin/newpost.template
Log:
the javascript calendar now respect the locale settings regarding the first day of the week (sunday or monday)
Modified: plog/trunk/templates/admin/editpost.template
===================================================================
--- plog/trunk/templates/admin/editpost.template 2006-06-18 19:19:21 UTC (rev 3614)
+++ plog/trunk/templates/admin/editpost.template 2006-06-18 19:56:39 UTC (rev 3615)
@@ -1,6 +1,10 @@
{include file="$admintemplatepath/header.template"}
{include file="$admintemplatepath/navigation.template" showOpt=editPosts title=$locale->tr("editPost")}
<script type="text/javascript" src="js/calendar/datetimepicker.js"></script>
+<script type="text/javascript">
+ // define the first day of the week according to the locale settings
+ MondayFirstDay = ( {$locale->firstDayOfWeek()} == 1);
+</script>
<script type="text/javascript" src="js/ui/plogui.js"></script>
{assign var=htmlarea value=$blogsettings->getValue("htmlarea_enabled")}
{if $htmlarea}
Modified: plog/trunk/templates/admin/newpost.template
===================================================================
--- plog/trunk/templates/admin/newpost.template 2006-06-18 19:19:21 UTC (rev 3614)
+++ plog/trunk/templates/admin/newpost.template 2006-06-18 19:56:39 UTC (rev 3615)
@@ -6,6 +6,10 @@
{assign var=htmlarea value=$blogsettings->getValue("htmlarea_enabled")}
<script type="text/javascript" src="js/ui/plogui.js"></script>
<script type="text/javascript" src="js/calendar/datetimepicker.js"></script>
+ <script type="text/javascript">
+ // define the first day of the week according to the locale settings
+ MondayFirstDay = ( {$locale->firstDayOfWeek()} == 1);
+ </script>
<script type="text/javascript" src="js/ui/autosave.js"></script>
{if $htmlarea}
<script type="text/javascript" src="js/tinymce/tiny_mce_gzip.php"></script>
More information about the pLog-svn
mailing list