ExCanvas is only for IE, so we should use Conditional Tags to hide it from less awful browsers.

Comments

xurizaemon’s picture

StatusFileSize
new969 bytes

Like this?

    //for IE add this
    $expath = $path . '/other_libs/excanvas_r3/excanvas.compiled.js';
    if (file_exists($expath)) {
      $exhtml = array(
        '#type' => 'markup',
        '#markup' => '<!--[if IE]><script language="javascript" type="text/javascript" src="/' . $expath . '"></script><![endif]-->',
      );      
      drupal_add_html_head($exhtml, 'beautytips');
    }

Using Libraries would be cool too: #1060278: You should use hook_library for libraries in D7

xurizaemon’s picture

StatusFileSize
new973 bytes

Let's try that without leaving "mymodule" in, shall we?

xurizaemon’s picture

Status: Needs work » Needs review

-

pifagor’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)