view inkscape/firefox/content/main.js @ 1166:d73ef03c96de

Refactory code of MBScene.updateUI() from MBScene.show() - It is too busy to reborn full GUI components of pyink everytime the content being updated. - It is fixed by moveing code about updating of frameline to MBScene._updateUI() and avoid calling MBScene.show() to reduce time for updating frameline.
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 29 Dec 2010 21:16:27 +0800
parents 45e04408fc19
children
line wrap: on
line source

var last_select;
var wizard;
jQuery(document).ready(function() {
		if (loadOldProject()) {
			filedialog = jQuery('#filedialog');
			filedialog.dialog({width:500,
				   modal: true,
			           autoOpen:false,
				   title:'Please select a file'});
			filedialog.show();
			filedialog.html('Please select the project file<br>');
			filedialog.append('<input type=file value="Select the project file" id="mbsvg" accept="image/png">');
			filedialog.append('<input type=button value="Load" onclick="project_loadFile()">');
			filedialog.dialog("open");
			last_select = null;
			wizard = new Wizard();
			wizard.cb = onLoadProject;
			$('#filedialog').dialog({ width:500});
			$('#frame').draggable();
			$('#btns').draggable({cursor:'crosshair'});
			$('#list').tabs();
			$('#display').tabs();
		}
		});