From e5ddc7a08a1464b59075e435c959cd957238fabd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Fri, 14 Jun 2013 13:40:12 +0200 Subject: [PATCH 1/1] Fixing is-dirty management in rng module --- modules/rng/rng.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/rng/rng.js b/modules/rng/rng.js index 16a6d25..a13cfce 100644 --- a/modules/rng/rng.js +++ b/modules/rng/rng.js @@ -35,6 +35,7 @@ return function(sandbox) { if(slug === 'sourceEditor') { doc = sandbox.getModule('sourceEditor').getDocument(); reason = 'source_edit'; + dirty.sourceEditor = false; } if(slug === 'editor') { var doc = dirty.documentCanvas ? sandbox.getModule('documentCanvas').getDocument() : sandbox.getModule('data').getDocument(); @@ -42,6 +43,7 @@ return function(sandbox) { doc = sandbox.getModule('metadataEditor').attachMetadata(doc); } reason = 'edit'; + dirty.documentCanvas = dirty.metadataEditor = false; } sandbox.getModule('data').commitDocument(doc, reason); } -- 2.20.1