Skip to content

Commit

Permalink
Merge branch 'feature/chrome_ext' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
mitechie committed May 8, 2011
2 parents 4d24a83 + d80e7ec commit ecc609b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
9 changes: 9 additions & 0 deletions extensions/chrome_ext/bookie-chrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,20 @@
$b.populateForm = function () {
if (window.chrome !== undefined && chrome.tabs) {
chrome.tabs.getSelected(null, $b.populateFormBase);

var api_url = $b.settings.get('api_url');
console.log('api_url');
console.log(api_url);

$('#bookie_site').attr('href', api_url).attr('title', api_url);
} else {
// when running unit tests the chrome stuff isn't available
// so we have to fake it
$b.populateFormBase({'url':window.location.href,
'title': "Testing stuff"
});


}
};

Expand Down Expand Up @@ -129,6 +137,7 @@
$b.log($);
$($b.EVENTID).bind($b.events.LOAD, $b.events.onload);
$($b.EVENTID).trigger($b.events.LOAD);

};

return $b;
Expand Down
2 changes: 1 addition & 1 deletion extensions/chrome_ext/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Bookie",
"version": "0.2.0",
"version": "0.2.1",
"description": "Bookie Bookmarks",
"permissions": [
"tabs",
Expand Down
7 changes: 6 additions & 1 deletion extensions/chrome_ext/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@
</style>
</head>
<body id="bmarkbody">
<h1>Post to Bookie</h1>
<div>
<span style="float: right;">
<a href="" title="" target="_blank" id="bookie_site"><img src="logo.16.png" /></a>
</span>
<h1>Post to Bookie</h1>
</div>
<form id="form" name="form">
<input type="hidden" id="url" name="url" />
<input type="text" id="description" placeholder="title" name="description" />
Expand Down

0 comments on commit ecc609b

Please sign in to comment.