Skip to content

Commit

Permalink
Updated to support CraftCMS v3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
reganlawton committed Sep 1, 2020
1 parent 9bca001 commit e3aed5f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Simple Sharing Changelog

## 1.0.6 - 2020-09-02

### Updated
- Updated to support CraftCMS v3.5

## 1.0.5 - 2019-08-13

### Fixed
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@ Original built while at working at [HutSix](https://hutsix.com.au/) I've since b

Changes can be viewed [here](https://github.com/wrav/SimpleSharing/blob/master/CHANGELOG.md)

## Support
## Become a Contributor

Get in touch via email or by [creating a Github issue](/wrav/SimpleSharing/issues)
Open-source projects like this one are looking for your help. Feel free to submit a PR or tackle an issue.

## Show your Support
This is licensed under the MIT license meaning it will always be free. If you like the plugin, please feel free to show your support and buy me a :beers:.
## Support

[![Beerpay](https://beerpay.io/wrav/SimpleSharing/badge.svg)](https://beerpay.io/wrav/SimpleSharing)
Get in touch via email or by [creating a Github issue](/wrav/SimpleSharing/issues)
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "wrav/simplesharing",
"description": "Simple Sharing generates social media share links within CP entry pages, allowing you to quickly & easily share entries.",
"type": "craft-plugin",
"version": "1.0.5",
"version": "1.0.6",
"keywords": [
"craft",
"cms",
Expand Down
6 changes: 4 additions & 2 deletions src/assetbundles/simplesharing/dist/js/SimpleSharing.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
* @since 1.0.0
*/

var id = $("input[name='entryId']").val();
if(window.Craft)

var id = $("input[name='entryId'],input[name='sourceId']").val();
var sectionId = $("input[name='sectionId']").val();

if (id != null) {
Expand All @@ -36,4 +38,4 @@ if (id != null) {
});


}
}

0 comments on commit e3aed5f

Please sign in to comment.