Skip to content

Commit

Permalink
Fixed adding cards from context menu #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranjit Singh committed Jun 3, 2018
1 parent 7b5dad6 commit 6790a1d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
7 changes: 6 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ ___

---
## ChangeLog
Version 0.0.3 - Saturday, June 3nd, 2018
Version 0.0.4 - Sunday, June 3nd, 2018
---------------------------------------
- Fixed adding cards from context menu

--------------------------------------------------
Version 0.0.3 - Sunday, June 3nd, 2018
-----------------------------------------------------------------------------------------
- Fixed appendMode
- Added setting to turn on debugging.
Expand Down
9 changes: 7 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<div class="col-md-12">
<div class="big-title text-center">
<h1>Anki Quick Adder</h1>
<p class="lead">Extension For Anki / version 0.0.3</p>
<p class="lead">Extension For Anki / version 0.0.4</p>
</div>
<!-- end title -->
</div>
Expand Down Expand Up @@ -325,7 +325,12 @@ <h2 class="dark-text">Version History (Changelog) <a href="#top">#back to top</a
<hr>
<h4>Changelog</h4>
<pre class="brush: html">
Version 0.0.3 - Saturday, June 3nd, 2018
Version 0.0.4 - Sunday, June 3nd, 2018
-----------------------------------------------------------------------------------------
Fixed adding cards from context menu


Version 0.0.3 - Sunday, June 3nd, 2018
-----------------------------------------------------------------------------------------
- Fixed appendMode
- Added setting to turn on debugging.
Expand Down
8 changes: 8 additions & 0 deletions eventPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,17 @@ chrome.contextMenus.onClicked.addListener(function (clickedData) {
if (savedFormFields.hasOwnProperty(currentFieldName)) {
savedFormFields[currentFieldName] = savedFormFields[currentFieldName] + "<br>" + clickedData.selectionText;

}
else

{
savedFormFields[currentFieldName] = clickedData.selectionText;


}
} else {

alert(currentFieldName);
savedFormFields[currentFieldName] = clickedData.selectionText;

}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Anki Quick Adder",
"version": "0.0.3",
"version": "0.0.4",
"short_name": "Anki Adder",
"description": "This extension provides the ability to create anki cards directly from Google Chrome on your Anki Desktop.",
"background":{
Expand Down

0 comments on commit 6790a1d

Please sign in to comment.