Browse Source

Fixed links not working if Drupal is in a subfolder (e.g.: multi-site).

pull/385/head
root 12 years ago
parent
commit
430febedb8
  1. 8
      js/add_print.js

8
js/add_print.js

@ -8,11 +8,11 @@
*/
(function ($) {
$(document).ready(function() {
$('.tabs .primary').append('<img id="print_btn" title="Print" src="/' + Drupal.settings.islandora.print_img + '"></img>');
$('.tabs .primary').append('<img id="print_btn" title="Print" src="' + Drupal.settings.basePath + Drupal.settings.islandora.print_img + '"></img>');
$('#print_btn').css("cursor","pointer");
$('#print_btn').click(function() {
window.location=Drupal.settings.islandora.print_link;
window.location=Drupal.settings.basePath + Drupal.settings.islandora.print_link;
});
});
})(jQuery);
})(jQuery);

Loading…
Cancel
Save