I tried to access to USER.dateformat, but I failed (of course :) it cause script error if I put but with the line above, I get USER.dateformat as value, not the expected (yyyy-mm-dd) any hint? it seems in 1.3 USER as prefix never used Is that possible to include a variable to pass its value to the elements for processing? I am afraid, it is not possible. Am I wrong? Thanks, István ----------------eredeti üzenet----------------- Feladó: "Chris Travers" [email protected] Címzett: "Development discussion for LedgerSMB" [email protected] Dátum: Mon, 18 Aug 2014 01:54:06 -0700 ---------------------------------------------------------- > > >We add a few special variables to what is passed to the template. By >convention all >special variables are in all caps. > > > >USER is the variable to access the user object. > > > > >On Mon, Aug 18, 2014 at 1:30 AM, Pongrácz István [email protected] >wrote: > > > Hi, > >Here is a quick video demo about the enhancement: [http://youtu.be/jonu1UqU4ys > >I run into trouble with the new code: user.dateformat is empty, generated >forms do not >have title attribute ( for example: (yyyy-mm-dd) ) > >I tried several ways ( and $myconfig{dateformat} but all of them are failed. > >My question, how can I give the dateformat string to the title attribute? > >References: > > >UI/lib/elements.html > >UI/Contact/search.html (new code below, title is empty or script error, >depends on >what I try) > > >title = , onblur = "return dattrans('startdatefrom');" }; > > > > >Thanks, > >István > > > >----------------eredeti üzenet----------------- >Feladó: "Pongrácz István" [email protected] >Címzett: "Ledger-smb-devel lists.sourceforge.net" >[email protected] >Dátum: Sat, 16 Aug 2014 12:14:23 +0200 >---------------------------------------------------------- > > > > >Hi All, > >Yesterday I committed two modifications into my repository for 1.3.41. > >I have an old, sql-ledger fork from www.tavugyvitel.hu and its date input >field makes >date entry very quick. > >It works like this: > >I enter 0815 to the date field and press TAB to move the next input. A small >javascript >changes this string to a valid date, for my case to 2014-08-15 > >With big help from Erik (ehu) on the irc channel, I succeed to integrate it >into my 1.3.41 >version and I commit to my github fork. > >At this moment this works on offer/order/invoice date fields. > >I searched and modified all class="date" input fields, but there are a lot of >other date >field where this class does not exist, so, I have to scan all the source to >find and extend all >date fields. > >So, who is interesting about this modification, here are the two commits: > >https://github.com/pongraczi/LedgerSMB/compare/ledgersmb:1.3...1.3 >(DateInpurt part1 and part2) > >5be5576 3e1772d > >Cheers, > >István > > > > > > > > > > > >------------------------------------------------------------------------- >----- > >_______________________________________________ >Ledger-smb-devel mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel > > > > > > >-- > >Best Wishes, > >Chris Travers > > > >Efficito: Hosted Accounting and ERP. Robust and Flexible. No vendor lock-in. > >http://www.efficito.com/learn_more -> http://youtu.be/jonu1UqU4ys] > > > >__________________________________________________ > > > >------------------------------------------------------------------------- >----- > > >__________________________________________________ > > >_______________________________________________ >Ledger-smb-devel mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel > > > > > >
------------------------------------------------------------------------------
_______________________________________________ Ledger-smb-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel
