Get_meta button unfocused on return to edit books
This commit is contained in:
parent
250cafe814
commit
53603f79bd
|
@ -31,7 +31,7 @@ class ComicVine(Metadata):
|
||||||
apikey = "57558043c53943d5d1e96a9ad425b0eb85532ee6"
|
apikey = "57558043c53943d5d1e96a9ad425b0eb85532ee6"
|
||||||
if self.active:
|
if self.active:
|
||||||
headers = {
|
headers = {
|
||||||
'User-Agent': 'Not Evil Browser' # ,
|
'User-Agent': 'Not Evil Browser'
|
||||||
}
|
}
|
||||||
|
|
||||||
result = requests.get("https://comicvine.gamespot.com/api/search?api_key="
|
result = requests.get("https://comicvine.gamespot.com/api/search?api_key="
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from scholarly import scholarly
|
from scholarly import scholarly
|
||||||
|
from flask import url_for
|
||||||
|
|
||||||
import json
|
|
||||||
from cps.services.Metadata import Metadata
|
from cps.services.Metadata import Metadata
|
||||||
#try:
|
#try:
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ class scholar(Metadata):
|
||||||
v['tags'] = ""
|
v['tags'] = ""
|
||||||
v['ratings'] = 0
|
v['ratings'] = 0
|
||||||
v['series'] = ""
|
v['series'] = ""
|
||||||
v['cover'] = "/../../../static/generic_cover.jpg"
|
v['cover'] = url_for('static', filename='generic_cover.jpg')
|
||||||
v['url'] = ""
|
v['url'] = ""
|
||||||
v['source'] = {
|
v['source'] = {
|
||||||
"id": self.__id__,
|
"id": self.__id__,
|
||||||
|
|
|
@ -269,3 +269,4 @@ $("#xchange").click(function () {
|
||||||
$("#book_title").val($("#bookAuthor").val());
|
$("#book_title").val($("#bookAuthor").val());
|
||||||
$("#bookAuthor").val(title);
|
$("#bookAuthor").val(title);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -107,4 +107,9 @@ $(function () {
|
||||||
$("#keyword").val(bookTitle);
|
$("#keyword").val(bookTitle);
|
||||||
doSearch(bookTitle);
|
doSearch(bookTitle);
|
||||||
});
|
});
|
||||||
|
$("#metaModal").on("show.bs.modal", function(e) {
|
||||||
|
$(e.relatedTarget).one('focus', function (e) {
|
||||||
|
$(this).blur();
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -232,7 +232,7 @@
|
||||||
<form class="padded-bottom" id="meta-search">
|
<form class="padded-bottom" id="meta-search">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<label class="sr-only" for="keyword">{{_('Keyword')}}</label>
|
<label class="sr-only" for="keyword">{{_('Keyword')}}</label>
|
||||||
<input type="text" class="form-control" id="keyword" name="keyword" placeholder="{{_(" Search keyword ")}}">
|
<input type="text" class="form-control" id="keyword" name="keyword" placeholder="{{_("Search keyword")}}">
|
||||||
<span class="input-group-btn">
|
<span class="input-group-btn">
|
||||||
<button type="submit" class="btn btn-primary" id="do-search">{{_("Search")}}</button>
|
<button type="submit" class="btn btn-primary" id="do-search">{{_("Search")}}</button>
|
||||||
</span>
|
</span>
|
||||||
|
@ -262,7 +262,7 @@
|
||||||
<img class="pull-left img-responsive"
|
<img class="pull-left img-responsive"
|
||||||
data-toggle="modal"
|
data-toggle="modal"
|
||||||
data-target="#metaModal"
|
data-target="#metaModal"
|
||||||
src="<%= cover || "{{ url_for('static', filename='img/academicpaper.svg') }}" %>"
|
src="<%= cover || "{{ url_for('static', filename='img/academicpaper.svg') }}" %>"
|
||||||
alt="Cover"
|
alt="Cover"
|
||||||
>
|
>
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user