Hello everybody,
I've been using iUI for a couple of days now and have some code fixes
and additions to help things along.
It's my first time contributing to an open source project, so please
be kind! I am a professional developer and can use SVN, so no worries
there. I'll outline below what I've got to add, and then somebody can
add me to the project - or not! Let me know how to proceed, basically.
Code changes are referencing SVN version as of last night.
+ CSS change to limit li.group text to one line, adding ellipsis as required
iui.css changes at line 166:
body > ul > li.group {
...
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+ JS change to allow otherButton (top right) on a per page basis
this takes is cue from the undocumented hideBackButton attribute
and uses new attributes on the page element. there may be a better
way!
<div class="toolbar">
<h1 id="pageTitle"></h1>
<a id="backButton" class="button" href="#"></a>
<a id="otherButton" class="button" href="#"></a>
</div>
<div id="password" title="Password" class="panel"
otherButtonLabel="Done" otherButtonHref="process.php"
otherButtonClass="blueButton">
...
</div>
<ul id="thread" title="Topic" otherButtonLabel="Reply"
otherButtonHref="reply.php">
...
</ul>
iui.js change at line 326:
var otherButton = $("otherButton");
if (otherButton)
{
var otherButtonValue = page.getAttribute("otherButtonLabel");
if (otherButtonValue)
{
otherButton.innerHTML = otherButtonValue;
otherButton.href = page.getAttribute("otherButtonHref");
otherButton.className = "button "+
page.getAttribute("otherButtonClass");
otherButton.style.display = "inline";
}
else
otherButton.style.display = "none";
}
Looking forward to your thoughts. Have a good weekend.
Thanks,
matt
--
http://www.gingerbeardman.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---