Discussion:
Question about plugins
Yoav Avitzour
2008-09-08 17:50:44 UTC
Permalink
John,


I noticed that when the ISI-plugin changes the values of document fields
using document.set_field, the values are changed but referencer is not
aware that a change occurred, the Save button is grayed out, and
referencer allows quitting without saving. This can be overcome by
manually entering the document properties window (which contains the new
information), saving the information there and then the global save
becomes active.


Is there something I need to do to tell referencer that a change has
been made to a document?


Thanks,

Yoav
John Spray
2008-09-08 20:23:53 UTC
Permalink
Post by Yoav Avitzour
I noticed that when the ISI-plugin changes the values of document fields
using document.set_field, the values are changed but referencer is not
aware that a change occurred, the Save button is grayed out, and
referencer allows quitting without saving. This can be overcome by
manually entering the document properties window (which contains the new
information), saving the information there and then the global save
becomes active.
This was an oversight in the plugin interface. I've just committed a
change which marks the library as dirty whenever a plugin action is
executed. Finer grained control would be nice to have at some point.

John
Yoav Avitzour
2008-09-08 23:53:07 UTC
Permalink
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/referencer/attachments/20080908/885f0aff/attachment.htm>
John Spray
2008-09-09 08:51:40 UTC
Permalink
Thanks.
Another question - is it possible to open the document properties
window from a running plugin via the document object?
Not at present.

John

Loading...