Skip to content

Commit e7d49c7

Browse files
committed
Always show the IDE key that is used
1 parent 8489bc2 commit e7d49c7

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

source/options.css

-4
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ body {
9191
vertical-align: bottom;
9292
}
9393

94-
#customkey {
95-
display: none;
96-
}
97-
9894
.contribute {
9995
font-size: 10px;
10096
color: #808080;

source/options.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ function restore_options()
1818
if (idekey == "XDEBUG_ECLIPSE" || idekey == "netbeans-xdebug" || idekey == "macgdbp" || idekey == "PHPSTORM")
1919
{
2020
$("#ide").val(idekey);
21+
$("#idekey").prop('disabled', true);
2122
}
2223
else
2324
{
2425
$("#ide").val("null");
25-
$("#customkey").fadeIn();
26+
$("#idekey").prop('disabled', false);
2627
}
2728
$('#idekey').val(idekey);
2829

@@ -49,14 +50,14 @@ $(function()
4950
{
5051
if ($("#ide").val() != "null")
5152
{
52-
$("#customkey").fadeOut();
53+
$("#idekey").prop('disabled', true);
5354
$("#idekey").val($("#ide").val());
5455

5556
save_options();
5657
}
5758
else
5859
{
59-
$("#customkey").fadeIn();
60+
$("#idekey").prop('disabled', false);
6061
}
6162
});
6263

0 commit comments

Comments
 (0)