AKSW / RDFauthor

RDFauthor creates formular widgets out of RDFa-enhanced webpages.
http://aksw.org/Projects/RDFauthor
GNU General Public License v3.0
18 stars 5 forks source link

Adding a new property, which was not used before freezes the popover edit #51

Open white-gecko opened 8 years ago

white-gecko commented 8 years ago

Forked from #47

Adding a new property, which was not used before freezes the popover edit dialog.

This can be reproduces with the following steps:

  1. Open the Popover dialog to edit a resource (e.g. with the context menu item "Edit Resource")
  2. Click "Add Property"
  3. Insert a new property URI, which wasn't used before in the model
  4. Hit Enter

The JavaScript console provides following information:

TypeError: jQuery(...).closest(...).offset(...) is undefined1 rdfauthor.popovercontroller.js:151:38
white-gecko commented 7 years ago

This is a similar Stack trace:

TypeError: jQuery(...).closest(...).offset(...) is undefined[Learn
More]  rdfauthor.popovercontroller.js:151:39
    PopoverController/</propertySelector<
http://localhost/OntoWiki/libraries/RDFauthor/src/rdfauthor.popovercontroller.js:151:39

SubjectGroup.prototype.getPropertySelector/selectorOptions.selectionCallback
http://localhost/OntoWiki/libraries/RDFauthor/src/rdfauthor.subjectgroup.js:138:25
    ._init/<
http://localhost/OntoWiki/libraries/RDFauthor/src/widget.property.js:488:21
    jQuery.event.dispatch
http://localhost/OntoWiki/extensions/themes/silverblue/scripts/libraries/jquery-1.9.1.js:3073:15
    jQuery.event.add/elemData.handle
http://localhost/OntoWiki/extensions/themes/silverblue/scripts/libraries/jquery-1.9.1.js:2750:6
    jQuery.event.trigger
http://localhost/OntoWiki/extensions/themes/silverblue/scripts/libraries/jquery-1.9.1.js:2986:5
    jQuery.event.trigger
http://localhost/OntoWiki/extensions/themes/silverblue/scripts/libraries/jquery-migrate-1.3.0.js:587:9
    .trigger/<
http://localhost/OntoWiki/extensions/themes/silverblue/scripts/libraries/jquery-1.9.1.js:3677:4
    .each
http://localhost/OntoWiki/extensions/themes/silverblue/scripts/libraries/jquery-1.9.1.js:648:14
    jQuery.prototype.each
http://localhost/OntoWiki/extensions/themes/silverblue/scripts/libraries/jquery-1.9.1.js:270:10
    .trigger
http://localhost/OntoWiki/extensions/themes/silverblue/scripts/libraries/jquery-1.9.1.js:3676:10
    <anonymous>
http://localhost/OntoWiki/libraries/RDFauthor/src/widget.property.js:543:47
    jQuery.event.dispatch
http://localhost/OntoWiki/extensions/themes/silverblue/scripts/libraries/jquery-1.9.1.js:3073:15
    jQuery.event.add/elemData.handle
http://localhost/OntoWiki/extensions/themes/silverblue/scripts/libraries/jquery-1.9.1.js:2750:6