diff --git a/src/pyui/static/js/app.js b/src/pyui/static/js/app.js index 6365e32..3dc12ac 100644 --- a/src/pyui/static/js/app.js +++ b/src/pyui/static/js/app.js @@ -11,6 +11,7 @@ function copyToClipboard(className){ function readOnlyToggle(elementId) { var element = document.getElementById(elementId); + element.value = ''; element.readOnly = !element.readOnly; } diff --git a/src/pyui/templates/pygmy/index.html b/src/pyui/templates/pygmy/index.html index b8479ae..7398a7b 100644 --- a/src/pyui/templates/pygmy/index.html +++ b/src/pyui/templates/pygmy/index.html @@ -36,21 +36,21 @@

Pygmy

-
-
- - +
+
+
+

-
-
- - +
+
+
+
diff --git a/src/pyui/templates/pygmy/short_url.html b/src/pyui/templates/pygmy/short_url.html index 164551c..603418a 100644 --- a/src/pyui/templates/pygmy/short_url.html +++ b/src/pyui/templates/pygmy/short_url.html @@ -7,7 +7,7 @@

Pygmy

+ value="{{short_url}}" readonly autofocus id="short_url_blocked" onclick="input.focus();input.select();">