Browse Source

Some fixes in documents due the new yoxview viewer

Julio Montoya 14 years ago
parent
commit
5bcf82b0d2
2 changed files with 8 additions and 3 deletions
  1. 5 2
      main/document/document.inc.php
  2. 3 1
      main/document/document.php

+ 5 - 2
main/document/document.inc.php

@@ -151,7 +151,8 @@ function create_document_link($document_data, $show_as_icon = false) {
             //$new_path = '?id='.$document_data['id'];
             $url = $www.$path;
         }
-        $path = str_replace('%2F', '/',$url_path).'?'.api_get_cidreq();
+        //$path = str_replace('%2F', '/',$url_path).'?'.api_get_cidreq();
+        $path = str_replace('%2F', '/',$url_path); //yox view hack otherwise the image can't be well read 
         $url = $www.$path;
         
         // Disabled fragment of code, there is a special icon for opening in a new window.
@@ -167,7 +168,9 @@ function create_document_link($document_data, $show_as_icon = false) {
     // The little download icon
     //$tooltip_title = str_replace('?cidReq='.$_GET['cidReq'], '', basename($path));
     $tooltip_title = explode('?', basename($path));
-    $tooltip_title = $tooltip_title[0];
+    //$tooltip_title = $tooltip_title[0];
+    $tooltip_title = $title;
+    
 
     $tooltip_title_alt = $tooltip_title;
     if ($path == '/shared_folder') {

+ 3 - 1
main/document/document.php

@@ -64,7 +64,9 @@ $htmlHeadXtra[] = '<link rel="stylesheet" href="'.$js_path.'yoxview/yoxview.css"
 $htmlHeadXtra[] = '<script type="text/javascript">
 $(document).ready( function() {    
     $(".yoxview").yoxview({
-        skin: "top_menu"                    
+        skin: "top_menu",
+        titleAttribute:"alt"
+                         
     });
     for (i=0;i<$(".actions").length;i++) {
         if ($(".actions:eq("+i+")").html()=="<table border=\"0\"></table>" || $(".actions:eq("+i+")").html()=="" || $(".actions:eq("+i+")").html()==null) {