Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

[BUG+FIX] The commands toolbar works with no command selected

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Francesco

Francesco

    Advanced Member

  • Member
  • PipPipPip
  • 411 posts
  • Joined 20-March 04
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=[];

Edited by Francesco, 18 May 2012 - 07:58 PM.



How to remove advertisement from MSFN

#2
Kelsenellenelvian

Kelsenellenelvian

    WPI Guru

  • Developer
  • 8,869 posts
  • Joined 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag
Added in 8.5




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users