org.symbian.tools.wrttools.previewer/preview/script/nokia.js
changeset 394 bd0603d7cbf9
parent 393 5b968742b729
child 396 11ff5aef0e96
equal deleted inserted replaced
393:5b968742b729 394:bd0603d7cbf9
   524 		
   524 		
   525 		load : function()
   525 		load : function()
   526 		{
   526 		{
   527 			if(this.loaded)
   527 			if(this.loaded)
   528 				return false;
   528 				return false;
   529 				
   529 			NOKIA.layout._console_minimized = (NOKIA.helper.getPreference('__SYM_NOKIA_CONSOLE_OPEN') != "true");
   530 			//	load the saved device Info
   530 			//	load the saved device Info
   531 			var device = NOKIA.helper.getPreference('__SYM_NOKIA_EMULATOR_DEVICE');
   531 			var device = NOKIA.helper.getPreference('__SYM_NOKIA_EMULATOR_DEVICE');
   532 			NOKIA.currentDevice = device || NOKIA.currentDevice;
   532 			NOKIA.currentDevice = device || NOKIA.currentDevice;
   533 
       
   534 
   533 
   535 			//	load the saved device mode
   534 			//	load the saved device mode
   536 			var mode = NOKIA.helper.getPreference('__SYM_NOKIA_EMULATOR_DEVICE_MODE');
   535 			var mode = NOKIA.helper.getPreference('__SYM_NOKIA_EMULATOR_DEVICE_MODE');
   537 			if(mode != null)
   536 			if(mode != null)
   538 				NOKIA.mode = mode;
   537 				NOKIA.mode = mode;
  1355 			//	Toggle console window
  1354 			//	Toggle console window
  1356 			$('#Console-Toggle-Button').click(function(){
  1355 			$('#Console-Toggle-Button').click(function(){
  1357 				
  1356 				
  1358 				NOKIA.layout._console_minimized = (NOKIA.layout._console_minimized) ? false : true;
  1357 				NOKIA.layout._console_minimized = (NOKIA.layout._console_minimized) ? false : true;
  1359 				NOKIA.layout.render();
  1358 				NOKIA.layout.render();
       
  1359 				NOKIA.helper.setPreference("__SYM_NOKIA_CONSOLE_OPEN", !NOKIA.layout._console_minimized);
  1360 			});
  1360 			});
  1361 			
  1361 			
  1362 			// clear Log
  1362 			// clear Log
  1363 			$("#Console-Clear-Button").click(function(){
  1363 			$("#Console-Clear-Button").click(function(){
  1364 				$("#preview-ui-bottom-body")[0].innerHTML = '';
  1364 				$("#preview-ui-bottom-body")[0].innerHTML = '';