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
|