Browse Source

double-click to select textarea

sensors
Max Prokhorov 5 years ago
parent
commit
2f147ec088
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      code/html/custom.js

+ 2
- 0
code/html/custom.js View File

@ -1719,6 +1719,8 @@ $(function() {
$(document).on("change", "input", hasChanged); $(document).on("change", "input", hasChanged);
$(document).on("change", "select", hasChanged); $(document).on("change", "select", hasChanged);
$("textarea").on("dblclick", function() { this.select(); });
// don't autoconnect when opening from filesystem // don't autoconnect when opening from filesystem
if (window.location.protocol === "file:") { return; } if (window.location.protocol === "file:") { return; }


Loading…
Cancel
Save