Mercurial > MadButterfly
annotate inkscape/firefox/content/main.js @ 1299:6949e2b6cae2
Add unlink clone checker.
- Monitor changes of DOM-tree of the document
- Unlinking a clone is actually removing the clone and copying nodes
from the source.
- Copy value of ID of a node to saved_id to track source of copy
nodes.
- For a new node with 'saved_id' is a copy of another node.
- Copy vulae of 'saved_id' to 'ns0:duplicate-src' to keep the source
- Change value of 'saved_id' to the value of ID of the node for
later copying.
- For a new node without 'saved_id' is not a copy of another node.
- only set 'saved_id' to the value of its ID.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 16 Jan 2011 16:13:37 +0800 |
parents | 45e04408fc19 |
children |
rev | line source |
---|---|
389 | 1 var last_select; |
2 var wizard; | |
3 jQuery(document).ready(function() { | |
4 if (loadOldProject()) { | |
5 filedialog = jQuery('#filedialog'); | |
6 filedialog.dialog({width:500, | |
7 modal: true, | |
8 autoOpen:false, | |
9 title:'Please select a file'}); | |
10 filedialog.show(); | |
11 filedialog.html('Please select the project file<br>'); | |
12 filedialog.append('<input type=file value="Select the project file" id="mbsvg" accept="image/png">'); | |
13 filedialog.append('<input type=button value="Load" onclick="project_loadFile()">'); | |
14 filedialog.dialog("open"); | |
15 last_select = null; | |
16 wizard = new Wizard(); | |
17 wizard.cb = onLoadProject; | |
18 $('#filedialog').dialog({ width:500}); | |
19 $('#frame').draggable(); | |
20 $('#btns').draggable({cursor:'crosshair'}); | |
21 $('#list').tabs(); | |
22 $('#display').tabs(); | |
23 } | |
24 }); | |
25 |