Browse Source

HUE-303. FIXED Popup windows try to select the text inside the first checkbox instead of the first text input

Thomas Aylott 15 years ago
parent
commit
b5510a4219

+ 1 - 1
desktop/core/static/js/Source/JFrameRenderers/CCS.JFrame.Prompt.js

@@ -76,7 +76,7 @@ CCS.JFrame.addGlobalRenderers({
 			form.addEvent('submit', function(){
 				prompt.hide();
 			});
-			var inputs = form.getElements('input, textarea');
+			var inputs = form.getElements('input[type=text], textarea');
 			var focused;
 			inputs.some(function(input){
 				if (focused) return;