forked from jan/debianmemberportfolio
hide showall field for non ECMAScript clients
This commit is contained in:
parent
8b1613346e
commit
4902064aab
2 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ ${h.form(h.url_for(action='urllist'), method='get')}
|
||||||
${h.text('email',
|
${h.text('email',
|
||||||
h.escape(request.params.get('email', None), True), id='email')}<br />
|
h.escape(request.params.get('email', None), True), id='email')}<br />
|
||||||
</div>
|
</div>
|
||||||
<div id="showallfield">
|
<div id="showallfield" class="hidden">
|
||||||
${h.checkbox('showall', value='1', checked=False, id='showall')}
|
${h.checkbox('showall', value='1', checked=False, id='showall')}
|
||||||
<label for="showall">${_(u'Show all form fields')}</label><br />
|
<label for="showall">${_(u'Show all form fields')}</label><br />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -118,7 +118,7 @@ $(document).ready(function() {
|
||||||
$(defaultreadonlydivs[index]).hide();
|
$(defaultreadonlydivs[index]).hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('#showall').attr('checked', false).change(onChangeShowAll);
|
||||||
|
$('#showallfield').show();
|
||||||
$('#email').blur(onBlurEmail).focus();
|
$('#email').blur(onBlurEmail).focus();
|
||||||
$('#showall').attr('checked', false);
|
|
||||||
$('#showall').change(onChangeShowAll);
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue