MSFN Forum: [BUG+FIX] The commands toolbar works with no command selected - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[BUG+FIX] The commands toolbar works with no command selected Rate Topic: -----

#1 User is offline   Francesco 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 394
  • Joined: 20-March 04

Posted 18 May 2012 - 07:50 PM

Cause
The HandleCommandsSelectionMenu function doesn't check whether the command textbox is disabled before inserting the command text.
Fix
In configwizard.js below the line containing

whatfunc="HandleCommandsSelectionMenu()";


add

	if (document.getElementById("cmd1").disabled)
		Alert("",getText(txtMustAddCommand),"",3,-1,0,0);;



In lang_en.js below the line containing

txtDeleteCommandConfirm[lang]	= ['Are you sure you want to delete this command?'];


add

txtMustAddCommand[lang]	= ['You must add a command entry through the \'Add\' button before being able to perform this operation.'];



In globals_lang.js below the line containing

var txtDeleteCommandConfirm=[];


add

var txtMustAddCommand=[];


This post has been edited by Francesco: 18 May 2012 - 07:58 PM



#2 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,323
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 19 May 2012 - 01:51 PM

Added in 8.5

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy