Timepicker JavaScript error when editing already-existing field

Jump to: navigation, search

Hello, all. I have a form with a repeating multiple instance template with 2 timepicker fields inside. The fields save correctly the first time I click "Add Another" and generate the new fields. I can use the JavaScript timepicker just fine, and the data saves correctly to the page.

However, when I try to edit that same page, there is a JavaScript error when I click on any of the existing timepicker icons. (Any new fields created by clicking "Add Another" work just fine though.) The JavaScript error on each click reads:

document.getElementById(this.id.replace("_button", "_tp_show")) is null

Thanks so much for your help! This is a great extension! --Blicarea 04:42, 31 July 2011 (UTC)

Blicarea04:42, 31 July 2011

Yes, this is a problem with the new Resource loader in MW 1.17. I am working on it.

F.trott10:27, 31 July 2011

Thanks for your reply. I also get the same error when trying to load a form containing a timepicker through a template.

Blicarea03:26, 8 August 2011
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox