Skip to content

Commit

Permalink
added to all admin pages
Browse files Browse the repository at this point in the history
  • Loading branch information
rc1 committed Dec 19, 2010
1 parent f01eb74 commit 70fa8a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions assets/piano.js
Expand Up @@ -5,6 +5,7 @@
jQuery('input:[name="action[save]"]').click();
return false;
}

// New
if(e.keyCode == 78 && e.metaKey || e.keyCode == 78 && e.ctrlKey) {
var $newPageLink = jQuery('p#notice a:[href$="new/"]');
Expand Down
8 changes: 4 additions & 4 deletions extension.driver.php
Expand Up @@ -28,14 +28,14 @@ public function getSubscribedDelegates()

public function __appendAssets($context)
{
$callback = $this->_Parent->getPageCallback();
//$callback = $this->_Parent->getPageCallback();

if ($callback['driver'] == 'publish' && ($callback['context']['page'] == 'index' || $callback['context']['page'] == 'edit'))
{
//if ($callback['driver'] == 'publish' && ($callback['context']['page'] == 'index' || $callback['context']['page'] == 'edit'))
//{
$page = Administration::instance()->Page;

$page->addScriptToHead(URL . '/extensions/piano/assets/piano.js', 105);
}
//}
}

}

0 comments on commit 70fa8a9

Please sign in to comment.