[Jifty-commit] r881 - in jifty/trunk: share/web/static/js
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Thu Apr 20 23:18:12 EDT 2006
Author: alexmv
Date: Thu Apr 20 23:18:12 2006
New Revision: 881
Modified:
jifty/trunk/ (props changed)
jifty/trunk/share/web/static/js/jifty.js
Log:
r12455 at zoq-fot-pik: chmrr | 2006-04-20 23:17:54 -0400
* Only show calendar link on text entry (it was showing up on hidden entries!)
* element.parentNode hits Document before it hits null, which doesn't
have a getAttribute
Modified: jifty/trunk/share/web/static/js/jifty.js
==============================================================================
--- jifty/trunk/share/web/static/js/jifty.js (original)
+++ jifty/trunk/share/web/static/js/jifty.js Thu Apr 20 23:18:12 2006
@@ -241,7 +241,7 @@
Form.Element.validate(this);
}
},
- 'input.date': function(e) {
+ 'input[type="text"].date': function(e) {
if ( !Element.hasClassName( e, 'has-calendar-link' ) ) {
createCalendarLink(e);
Element.addClassName( e, 'has-calendar-link' );
@@ -422,7 +422,7 @@
f['parent'] = null;
if (f['mode'] && ((f['mode'] == "Before") || (f['mode'] == "After")))
element = element.parentNode;
- while ((element != null) && (f['parent'] == null)) {
+ while ((element != null) && (element.getAttribute) && (f['parent'] == null)) {
if (/^region-/.test(element.getAttribute("id")))
f['parent'] = element.getAttribute("id").replace(/^region-/,"");
element = element.parentNode;
More information about the Jifty-commit
mailing list