aboutsummaryrefslogtreecommitdiff
path: root/src/web/views/bookmark.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2017-05-26 09:06:38 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2017-05-26 09:06:38 +0200
commita5b61c59da8d462836abf3178240675dd7156938 (patch)
treec7d8f3449862c37689e884480ca8f0ec29a47c4c /src/web/views/bookmark.py
parentUpdated translations. (diff)
downloadnewspipe-a5b61c59da8d462836abf3178240675dd7156938.tar.gz
newspipe-a5b61c59da8d462836abf3178240675dd7156938.tar.bz2
newspipe-a5b61c59da8d462836abf3178240675dd7156938.zip
Improved bookmark creation/edition form.
Diffstat (limited to 'src/web/views/bookmark.py')
-rw-r--r--src/web/views/bookmark.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/web/views/bookmark.py b/src/web/views/bookmark.py
index 4e447899..cc43f191 100644
--- a/src/web/views/bookmark.py
+++ b/src/web/views/bookmark.py
@@ -101,9 +101,14 @@ def process_form(bookmark_id=None):
if not form.validate():
return render_template('edit_bookmark.html', form=form)
+ if form.title.data == '':
+ title = form.href.data
+ else:
+ title = form.title.data
+
bookmark_attr = {'href': form.href.data,
'description': form.description.data,
- 'title': form.title.data,
+ 'title': title,
'shared': form.shared.data,
'to_read': form.to_read.data}
bgstack15