cockpit/js/ui.js in cpee-2.0.24 vs cockpit/js/ui.js in cpee-2.0.25

- old
+ new

@@ -100,5 +100,12 @@ } else if (e.originalEvent.clipboardData) { content = (e.originalEvent || e).clipboardData.getData('text/plain'); document.execCommand('insertText', false, content); } }); + +// unmark if storage changes. shit has potentially been copied or marked in other tabs. +$(window).bind('storage', function (e) { + if (localStorage.getItem('marked_from') != myid) { + save['graph_adaptor'].illustrator.get_elements().removeClass('marked'); + } +});