Bookmark Changes and sidebar-right bookmark fix.
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
commit
e7505fa6c2
|
@ -8,7 +8,7 @@ var button_images = {
|
|||
};
|
||||
|
||||
var BookmarkInfo = Class.create({
|
||||
'default': {
|
||||
'def': {
|
||||
'permalink': false
|
||||
},
|
||||
'initialize': function() {
|
||||
|
@ -21,7 +21,7 @@ var BookmarkInfo = Class.create({
|
|||
var bookmark_info = this.jar.get('bookmark-info');
|
||||
|
||||
if ((typeof(bookmark_info) != 'object') || (bookmark_info == null)) {
|
||||
bookmark_info = this.default;
|
||||
bookmark_info = this.def;
|
||||
}
|
||||
|
||||
return bookmark_info;
|
||||
|
@ -36,6 +36,7 @@ Event.observe(window, 'load', function() {
|
|||
var bookmark_info = new BookmarkInfo();
|
||||
var info = bookmark_info.read();
|
||||
|
||||
if ($('comic-bookmark-holder')) {
|
||||
var hrefs = {};
|
||||
$$('#comic-bookmark-holder a').each(function(a) {
|
||||
var name = $w(a.className).shift();
|
||||
|
@ -67,4 +68,5 @@ Event.observe(window, 'load', function() {
|
|||
Event.observe(hrefs['goto-tag'], 'click', function(e) {
|
||||
if (hrefs['goto-tag'].href == "#") { Event.stop(e); }
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
@ -32,5 +32,3 @@ class BookmarkWidget extends WP_Widget {
|
|||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue