diff --git a/CSXS/manifest.xml b/CSXS/manifest.xml index d97e903..58230e8 100644 --- a/CSXS/manifest.xml +++ b/CSXS/manifest.xml @@ -1,16 +1,16 @@ - + - + - + diff --git a/index.html b/index.html index 5da2817..42d1a5a 100644 --- a/index.html +++ b/index.html @@ -24,7 +24,8 @@
- +

@@ -53,23 +54,26 @@ //Set up the event listener on the ExtendScript side: csInterface.evalScript("addDocumentListeners()"); - // Save the notes when Audition saves the document, (This is a bit of a hack, using extendscript events, as the CEP documentAfterSave event does not seem to be working despite Audition being on the list of supported apps... + // Save the notes when Audition saves the document. csInterface.addEventListener("com.adobe.csxs.events.DocumentSaveAs", function (event) { $('#notes-form').submit() }) + // This does not work, unsure as to why, the custom event never fires despite unsupported documents being used... csInterface.addEventListener("DocumentNotSupported", function (event) { $('#notes').prop('disabled', true); $('#save-as').prop('disabled', true); }) + // Same with this as the one above. csInterface.addEventListener("DocumentSupported", function (event) { $('#notes').prop('disabled', false); $('#save-as').prop('disabled', false); }) - // Reload the notes panel when changing active document + // Reload the notes panel when changing active document aswell as save the current notes before switching csInterface.addEventListener("com.adobe.csxs.events.DocumentAfterActivate", function (event) { + $('#notes-form').submit() location.reload(); })