mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-31 07:13:02 +00:00 
			
		
		
		
	First half of #1996 (editing single books)
This commit is contained in:
		| @@ -263,3 +263,9 @@ $("#btn-upload-cover").on("change", function () { | ||||
|     $("#upload-cover").html(filename); | ||||
| }); | ||||
|  | ||||
| $("#xchange").click(function () { | ||||
|     this.blur(); | ||||
|     var title = $("#book_title").val(); | ||||
|     $("#book_title").val($("#bookAuthor").val()); | ||||
|     $("#bookAuthor").val(title); | ||||
| }); | ||||
|   | ||||
| @@ -53,6 +53,10 @@ | ||||
|       <label for="book_title">{{_('Book Title')}}</label> | ||||
|       <input type="text" class="form-control" name="book_title" id="book_title" value="{{book.title}}"> | ||||
|     </div> | ||||
|     <div class="text-center"> | ||||
|         <button type="button" class="btn btn-default" id="xchange" ><span class="glyphicon glyphicon-arrow-up"></span><span class="glyphicon glyphicon-arrow-down"></span></button> | ||||
|     </div> | ||||
|  | ||||
|     <div class="form-group"> | ||||
|       <label for="bookAuthor">{{_('Author')}}</label> | ||||
|       <input type="text" class="form-control typeahead" name="author_name" id="bookAuthor" value="{{' & '.join(authors)}}" autocomplete="off"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ozzie Isaacs
					Ozzie Isaacs