with the new 0.5 version of Jetpack, my own dictcc-slidebar (based on
the Wikipedia Slidebar) stopped working correctly.
Something with the selection of text on a webpage broke, because the
selection text isn't brought over to the iframe holding the mobile
version of dict.cc anymore.
Here's the code which works fine for Jetpack 0.4:
-----------------------------------------------------
jetpack.future.import("selection");
jetpack.future.import("slideBar");
jetpack.slideBar.append({
icon: "http://www.dict.cc/favicon.ico",
width: 300,
persist: true,
html: '<style>scrollbar * {display: none !important;}</style><iframe
class="frame" height="99%" width="100%"
src="http://pocket.dict.cc/?s="></iframe>',
onReady: function(slide) {
jetpack.selection.onSelection(function() {
$(".frame", slide.contentDocument).attr("src",
"http://pocket.dict.cc/?s=" + jetpack.selection.text);
});
}
});
-----------------------------------------------------
I had a look at the respective selection JEP and I'm currently stumped
for where the error lies. Any hints are appreciated!
Cheers,
- Thorsten
Using FF 3.5.3 on Linux (Ubuntu 09.04) and Windows (XP).
- Thorsten
thanks for opening a bug for this:
https://bugzilla.mozilla.org/show_bug.cgi?id=516622. I hadn't thought of
it, but will report such incidents from now on.
Thanks a lot.
- Thorsten