Lines 1747-1753
Note that permanent location is a code, and location may be an authval.
Link Here
|
1747 |
$("body").on("click",".previewElastic", function(e){ |
1747 |
$("body").on("click",".previewElastic", function(e){ |
1748 |
e.preventDefault(); |
1748 |
e.preventDefault(); |
1749 |
var pageElastic = $(this).attr("href"); |
1749 |
var pageElastic = $(this).attr("href"); |
1750 |
$("#elasticPreview .modal-body").load(pageElastic); |
1750 |
$("#elasticPreview .modal-body").load(pageElastic, function( response, status, xhr ) { |
|
|
1751 |
if( status == 'error' ){ |
1752 |
$("#elasticPreview .modal-body").html('<h1>An error has occurred!</h1><h2><em>Error 404</em></h2><li>An internal link in the client is broken and the page does not exist</li></ul><h3>What\'s next?</h3><ul style="margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;"><li>Use top menu bar to navigate to another part of Koha.</li><li>To report a broken link or any other issue, please contact the Koha administrator. <a href="mailto:[% Koha.Preference('KohaAdminEmailAddress') | uri %]">Send email</a></li></ul>'); |
1753 |
} |
1754 |
}); |
1751 |
$('#elasticPreview').modal({show:true}); |
1755 |
$('#elasticPreview').modal({show:true}); |
1752 |
}); |
1756 |
}); |
1753 |
[% END %] |
1757 |
[% END %] |
1754 |
- |
|
|