michmech / xonomy

A schema-driven XML editor for the web.
MIT License
91 stars 32 forks source link

TypeError: Xonomy.focus is not a function #30

Closed fpierrat closed 6 years ago

fpierrat commented 6 years ago

Hi, Using Xonomy-3.5.0 downloaded herre: http://www.lexiconista.com/xonomy/ I kept getting following message on adding an attribute on an element in neard mode:

TypeError: Xonomy.focus is not a function

I had a try and modified line 1245: if(parameter.value=="") Xonomy.click($(html).prop("id"), "attributeValue"); else Xonomy.focus($(html).prop("id"), "attributeValue"); into: if(parameter.value=="") Xonomy.click($(html).prop("id"), "attributeValue"); else Xonomy.setFocus($(html).prop("id"), "attributeValue"); (replaced Xonomy.focus with Xonomy.setFocus , defined line 1669 with a signature apparently identical to given parameters... ... the error message disappeard, still I'm not sure at all this mod is correct :-| , please tell me... (and eventually correct the downloadable resources accordingly). Thanks in advance, Francis

fpierrat commented 6 years ago

Oups, I hadn't seen closed issue #29: the problem is solved, just the download link on lexiconista seems to need an update.