Skip to content

Commit

Permalink
Release v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Dec 21, 2018
1 parent 0cb0787 commit 4ced7f3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@ The extension is licensed under [AGPL-3.0](LICENSE.txt).

## Requirements

* CiviCRM 5.6+
* CiviCRM 5.8+KAM

## Usage

Once installed, click on "Recent" in the menubar to access your recently viewed contacts, activities, contributions, etc.

## Known Issues

On some systems this may cause CiviCRM screens to load more slowly due to the need to refresh the menubar every time a recent item is added.
Binary file modified images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@
<url desc="Support">https://github.com/civicrm/org.civicrm.recentmenu</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2018-09-05</releaseDate>
<version>1.0</version>
<releaseDate>2018-12-21</releaseDate>
<version>1.1</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.6</ver>
<ver>5.8</ver>
</compatibility>
<requires>
<ext>uk.squiffle.kam</ext>
</requires>
<comments>Once installed, click on "Recent" in the menubar to access your recently viewed contacts, activities, contributions, etc.</comments>
<civix>
<namespace>CRM/Recentmenu</namespace>
Expand Down
2 changes: 1 addition & 1 deletion js/recentmenu.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function($) {
$('body').on('crmMenuLoad.recentmenu', function() {
$(document).on('crmLoad', '#civicrm-menu', function() {
if (CRM.vars && CRM.vars.recentmenu && !CRM.menubar.getItem('recent_items')) {
CRM.menubar.addItems(-1, null, [CRM.vars.recentmenu]);
}
Expand Down
2 changes: 1 addition & 1 deletion recentmenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function recentmenu_civicrm_coreResourceList(&$list, $region) {
$menu['child'][] = $node;
}
Civi::resources()
->addScriptFile('org.civicrm.recentmenu', 'js/recentmenu.js', -99)
->addScriptFile('org.civicrm.recentmenu', 'js/recentmenu.js', 0, 'html-header')
->addVars('recentmenu', $menu);
}
}

0 comments on commit 4ced7f3

Please sign in to comment.