Close lookup windows

June 03 2008

  • 4 replies.
  • This question is not yet resolved.
  • This question was started by Mohamed.
  • Last post by Mohamed.
Mohamed
member
03 June, 08:38
Hi,

I am using openAttributesEditor() to be able to handle new attribute (of element) not handle by default.
When I add an element with the attribute to be edited (via a lookup) and just close it without changing anything the I got an empty element that element is not removed if I close the lookup.
How can I get a cancel behavious when I close a lookup?

Thanks in advance

Mohamed
Sjoerd
Xopus Team
03 June, 12:16
There's no way to know if the attributes editor is canceled. That why since 3.2.10 Xopus automatically opens the attributes editor for new nodes created in a user script, and the changes of the script are reverted when the attributes editor is canceled.
Mohamed
member
05 June, 10:26
I've update Xopus to 3.2.11 but the behaviour is the same.
Could you explain how to get the revert behaviour you mention? It is not very clear for me.

Thanks in advance,
Sjoerd
Xopus Team
05 June, 10:38
Did you remove the openAttributesEditor call in your script?
Mohamed
member
04 July, 13:21
Yes, but If I do that the attribute editor windows doesn't open.

Thanks.


React

HTML will be shown as HTML code.
Linebreaks and Links starting with http:// are automatically resolved