Skip to content

Commit

Permalink
add shortcut title to toolbar buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
cannelony committed Jul 9, 2012
1 parent 1fa70af commit a4b4b26
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions application/controllers/ResourceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,12 @@ public function propertiesAction()
$this->_owApp->erfurt->getAc()->isModelAllowed('edit', $this->_owApp->selectedModel)
) {
// TODO: check acl
$toolbar->appendButton(OntoWiki_Toolbar::EDIT, array('name' => 'Edit Properties'));
$toolbar->appendButton(OntoWiki_Toolbar::EDIT, array('name' => 'Edit Properties', 'title' => 'SHIFT + ALT + e'));
$toolbar->appendButton(
OntoWiki_Toolbar::EDITADD, array(
'name' => 'Clone',
'class' => 'clone-resource'
'class' => 'clone-resource',
'title' => 'SHIFT + ALT + l'
)
);
// ->appendButton(OntoWiki_Toolbar::EDITADD, array('name' => 'Add Property', 'class' => 'property-add'));
Expand All @@ -177,11 +178,26 @@ public function propertiesAction()
->appendButton(OntoWiki_Toolbar::DELETE, $params);

$toolbar->prependButton(OntoWiki_Toolbar::SEPARATOR)
->prependButton(OntoWiki_Toolbar::ADD, array('name' => 'Add Property', '+class' => 'property-add'));
->prependButton(OntoWiki_Toolbar::ADD, array(
'name' => 'Add Property',
'+class' => 'property-add',
'title' => 'SHIFT + ALT + a'
)
);

$toolbar->prependButton(OntoWiki_Toolbar::SEPARATOR)
->prependButton(OntoWiki_Toolbar::CANCEL, array('+class' => 'hidden'))
->prependButton(OntoWiki_Toolbar::SAVE, array('+class' => 'hidden'));
->prependButton(OntoWiki_Toolbar::CANCEL, array(
'+class' => 'hidden',
'title' => 'SHIFT + ALT + c'
)
);

$toolbar->prependButton(
OntoWiki_Toolbar::SAVE, array(
'+class' => 'hidden',
'title' => 'SHIFT + ALT + s'
)
);
}

// let plug-ins add buttons
Expand Down

0 comments on commit a4b4b26

Please sign in to comment.