[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[6074] trunk/UI/lib
- Subject: SF.net SVN: ledger-smb:[6074] trunk/UI/lib
- From: ..hidden..
- Date: Sat, 21 Sep 2013 11:33:01 +0000
Revision: 6074
http://sourceforge.net/p/ledger-smb/code/6074
Author: einhverfr
Date: 2013-09-21 11:33:00 +0000 (Sat, 21 Sep 2013)
Log Message:
-----------
Moving LedgerSMB config info for Javascript into a global lsmbConfig object. This should allow more data to
be included as needed for widget setup without polluting either the dojoConfig
or further polluting the global scope.
Modified Paths:
--------------
trunk/UI/lib/setup.js
trunk/UI/lib/ui-header.html
Modified: trunk/UI/lib/setup.js
===================================================================
--- trunk/UI/lib/setup.js 2013-09-21 09:43:51 UTC (rev 6073)
+++ trunk/UI/lib/setup.js 2013-09-21 11:33:00 UTC (rev 6074)
@@ -21,7 +21,7 @@
// I have now changed it to a DateTextBox, but apparently we
// also have a wrapped version which we should use. Will move
// that over shortly. --CT
- var df = dateformat;
+ var df = lsmbConfig.dateformat;
df.replace('mm', 'MM');
var val = input.value;
var style = {};
Modified: trunk/UI/lib/ui-header.html
===================================================================
--- trunk/UI/lib/ui-header.html 2013-09-21 09:43:51 UTC (rev 6073)
+++ trunk/UI/lib/ui-header.html 2013-09-21 11:33:00 UTC (rev 6074)
@@ -1,5 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?lsmb form.titlebar ? form.titlebar : titlebar ?></title>
@@ -32,7 +31,7 @@
parseOnLoad: 0,
packages: [{"name":"lsmb","location":"../../.."}]
}
- var dateformat = '<?lsmb USER.dateformat ?>';
+ var lsmbConfig = { "dateformat": '<?lsmb USER.dateformat ?>' };
</script>
<script type="text/javascript" language="JavaScript" src="UI/lib/dojo/dojo/dojo.js"></script>
<script type="text/javascript" language="JavaScript"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits