31 Jan 2012 07:46
Login form - iOS keyboard hinting
Nick Sayer <nsayer <at> kfu.com>
2012-01-31 06:46:33 GMT
2012-01-31 06:46:33 GMT
It's a little thing. But every big thing is made of a lot of little things, after all. I've patched my 1.4.22 installation so that the login form Name: field is of type 'email' instead of 'text.' The purpose for doing so is so that iOS keyboards will have the e-mail nature - they'll show you the <at> symbol on the alpha page and not default to initial-caps. I don't know if I could do this as a plugin. It required modifying functions/form.php's addInput() method. I added another defaulted argument - $type = 'text'. I changed the instance of 'text' in the call to addInputField with $type. Next, in src/login.php I added ,'email' to the parameter list for that field. Lastly, the javascript block needed to have || document.login_form.elements[i].type == \"email\" added to the existing || clause. There are likely other places where the 'email' hint could be added. The compose window is an obvious next step. I don't do a lot of composing in my squirrelmail installation, but still... ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ----- squirrelmail-devel mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-devel <at> lists.sourceforge.net(Continue reading)
RSS Feed