Browse Source

Removed console log function and reference to old view object permission.

pull/394/head
MorganDawe 11 years ago
parent
commit
81cc6be977
  1. 2
      islandora.module
  2. 1
      js/add_print.js

2
islandora.module

@ -132,7 +132,7 @@ function islandora_menu() {
'page arguments' => array(2), 'page arguments' => array(2),
'type' => MENU_CALLBACK, 'type' => MENU_CALLBACK,
'access callback' => 'islandora_object_access', 'access callback' => 'islandora_object_access',
'access arguments' => array(FEDORA_VIEW_OBJECTS, 2), 'access arguments' => array(ISLANDORA_VIEW_OBJECTS, 2),
'load arguments' => array(2), 'load arguments' => array(2),
); );
$items['islandora/object/%islandora_object/view'] = array( $items['islandora/object/%islandora_object/view'] = array(

1
js/add_print.js

@ -10,7 +10,6 @@
$(document).ready(function() { $(document).ready(function() {
$('.tabs .primary').append('<img id="print_btn" title="Print" src="' + Drupal.settings.basePath + 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').css("cursor","pointer");
console.log(Drupal.settings.basePath + Drupal.settings.islandora.print_link);
$('#print_btn').click(function() { $('#print_btn').click(function() {
window.location=Drupal.settings.basePath + Drupal.settings.islandora.print_link; window.location=Drupal.settings.basePath + Drupal.settings.islandora.print_link;
}); });

Loading…
Cancel
Save