aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSebastien SAUVAGE <sebsauvage@sebsauvage.net>2013-09-27 17:08:31 +0200
committerSebastien SAUVAGE <sebsauvage@sebsauvage.net>2013-09-27 17:08:31 +0200
commit7b2186a63e2c788f1f2622779c5a1c341117eac1 (patch)
tree3faf7f966c9f88a64415b7b20757be8ebaadb0e7
parent2d20481e45ab598dbe46d0a1cceb56de770b387e (diff)
downloadShaarli-7b2186a63e2c788f1f2622779c5a1c341117eac1.tar.gz
Shaarli-7b2186a63e2c788f1f2622779c5a1c341117eac1.tar.zst
Shaarli-7b2186a63e2c788f1f2622779c5a1c341117eac1.zip
Corrected field focus in bookmarklet
Focus was not properly given to description field when it's empty.
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 23a6294c..0465a4e5 100644
--- a/index.php
+++ b/index.php
@@ -1548,7 +1548,7 @@ function renderPage()
1548 $link_is_new = true; // This is a new link 1548 $link_is_new = true; // This is a new link
1549 $linkdate = strval(date('Ymd_His')); 1549 $linkdate = strval(date('Ymd_His'));
1550 $title = (empty($_GET['title']) ? '' : $_GET['title'] ); // Get title if it was provided in URL (by the bookmarklet). 1550 $title = (empty($_GET['title']) ? '' : $_GET['title'] ); // Get title if it was provided in URL (by the bookmarklet).
1551 $description = (empty($_GET['description']) ? '' : $_GET['description'] )."\n"; // Get description if it was provided in URL (by the bookmarklet). [Bronco added that] 1551 $description = (empty($_GET['description']) ? '' : $_GET['description']); // Get description if it was provided in URL (by the bookmarklet). [Bronco added that]
1552 $tags = (empty($_GET['tags']) ? '' : $_GET['tags'] ); // Get tags if it was provided in URL 1552 $tags = (empty($_GET['tags']) ? '' : $_GET['tags'] ); // Get tags if it was provided in URL
1553 $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); // Get private if it was provided in URL 1553 $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); // Get private if it was provided in URL
1554 if (($url!='') && parse_url($url,PHP_URL_SCHEME)=='') $url = 'http://'.$url; 1554 if (($url!='') && parse_url($url,PHP_URL_SCHEME)=='') $url = 'http://'.$url;