diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-07-14 15:24:13 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-07-14 15:25:18 +0300 |
commit | 74eb8a0848bf7ed07c0c3efa51bf3e16dd040d11 (patch) | |
tree | b9b086802c6f1ad9f358327116b28a6f8d8d0e7e /templates | |
parent | 15c5c50a77a37968ba394c9fb619d2ab423f94b6 (diff) |
fix updating of bookmarks via bookmarklet
Diffstat (limited to 'templates')
-rw-r--r-- | templates/addBookmarklet.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/addBookmarklet.php b/templates/addBookmarklet.php index eefa6d5a..ab0ff07a 100644 --- a/templates/addBookmarklet.php +++ b/templates/addBookmarklet.php @@ -14,7 +14,7 @@ $bookmarkExists = $_['bookmarkExists']; <span style="display: inline; float: right"><div id="add_form_loading" style="margin: 3px;"><img src="<?php print_unescaped(OCP\image_path("bookmarks", "loading.gif")); ?>"> </div></span> <div style="color: red; clear: both; visibility: <?php - if ($bookmarkExists == false) { + if ($bookmarkExists === false) { print_unescaped('hidden'); } ?>"> @@ -26,6 +26,9 @@ $bookmarkExists = $_['bookmarkExists']; <fieldset class="bm_desc"> <ul> <li> + <?php if($bookmarkExists !== false) { ?> + <input id="bookmarkID" type="hidden" class="hidden" value="<?php p($bookmarkExists); ?>" /> + <?php } ?> <input id="title" type="text" name="title" class="title" value="<?php p($_['title']); ?>" placeholder="<?php p($l->t('The title of the page')); ?>" /> </li> |