This commit is contained in:
Kovid Goyal 2010-10-27 23:36:38 -06:00
parent 847b52e812
commit e7f55bfd97
2 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@
<script type="text/javascript"> <script type="text/javascript">
var sort_cookie_name = "{sort_cookie_name}"; var sort_cookie_name = "{sort_cookie_name}";
var sort_select_label = "{sort_select_label}"; var sort_select_label = "{sort_select_label}";
var url_prefix = "{prefix}";
$(document).ready(function() {{ $(document).ready(function() {{
init(); init();
{script} {script}

View File

@ -257,7 +257,7 @@ function booklist(hide_sort) {
function show_details(a_dom) { function show_details(a_dom) {
var book = $(a_dom).closest('div.summary'); var book = $(a_dom).closest('div.summary');
var bd = $('#book_details_dialog'); var bd = $('#book_details_dialog');
bd.html('<span class="loading"><img src="/static/loading.gif" alt="Loading" />Loading, please wait&hellip;</span>'); bd.html('<span class="loading"><img src="'+url_prefix+'/static/loading.gif" alt="Loading" />Loading, please wait&hellip;</span>');
bd.dialog('option', 'width', $(window).width() - 100); bd.dialog('option', 'width', $(window).width() - 100);
bd.dialog('option', 'height', $(window).height() - 100); bd.dialog('option', 'height', $(window).height() - 100);
bd.dialog('option', 'title', book.find('.title').text()); bd.dialog('option', 'title', book.find('.title').text());