fix: [UI Item submit] tags input: avoid browser and password managers autocomplete

pull/569/head
Terrtia 2021-07-15 15:49:04 +02:00
parent bf5c2deed2
commit f5332bbc5a
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
3 changed files with 7 additions and 6 deletions

View File

@ -119,7 +119,6 @@ class Tracker_Term(AbstractModule):
for term_uuid in uuid_list: for term_uuid in uuid_list:
tracker_sources = Tracker.get_tracker_uuid_sources(term_uuid) tracker_sources = Tracker.get_tracker_uuid_sources(term_uuid)
if not tracker_sources or item_source in tracker_sources: if not tracker_sources or item_source in tracker_sources:
print(not tracker_sources or item_source in tracker_sources)
Tracker.add_tracked_item(term_uuid, item_id) Tracker.add_tracked_item(term_uuid, item_id)
tags_to_add = Term.get_term_tags(term_uuid) tags_to_add = Term.get_term_tags(term_uuid)

View File

@ -273,7 +273,7 @@ def submit():
#paste_name = request.form['paste_name'] #paste_name = request.form['paste_name']
logger.debug('submit') logger.debug('submit')
password = request.form['password'] password = request.form['archive_pass']
ltags = request.form['tags_taxonomies'] ltags = request.form['tags_taxonomies']
ltagsgalaxies = request.form['tags_galaxies'] ltagsgalaxies = request.form['tags_galaxies']
paste_content = request.form['paste_content'] paste_content = request.form['paste_content']

View File

@ -129,7 +129,7 @@
</div> </div>
</div> </div>
<label for="ltagsgalaxies">Optional Tags:</label> <label for="ltags">Optional Tags:</label>
<div class="row mb-3"> <div class="row mb-3">
<div class="col"> <div class="col">
<div class="input-group"> <div class="input-group">
@ -195,7 +195,7 @@
<!-- TODO reactivate while zipped format are enabled --> <!-- TODO reactivate while zipped format are enabled -->
<div class="form-group d-none"> <div class="form-group d-none">
<label for="paste_name">Archive Password</label> <label for="paste_name">Archive Password</label>
<input type="password" class="form-control" id="password" name="password" <input type="text" class="form-control" id="archive_pass" name="archive_pass"
placeholder="Optional"> placeholder="Optional">
</div> </div>
</div> </div>
@ -262,7 +262,8 @@
ltags = $('#ltags').tagSuggest({ ltags = $('#ltags').tagSuggest({
data: data, data: data,
maxDropHeight: 200, maxDropHeight: 200,
name: 'ltags' name: 'ltags',
emptyText: 'Add Taxonomies Tags',
}); });
}); });
@ -272,7 +273,8 @@
ltagsgalaxies = $('#ltagsgalaxies').tagSuggest({ ltagsgalaxies = $('#ltagsgalaxies').tagSuggest({
data: data, data: data,
maxDropHeight: 200, maxDropHeight: 200,
name: 'ltagsgalaxies' name: 'ltagsgalaxies',
emptyText: 'Add Galaxies Tags',
}); });
}); });