diff --git a/htroot/yacy/ui/css/base.css b/htroot/yacy/ui/css/base.css index cb902c255..193a191a5 100644 --- a/htroot/yacy/ui/css/base.css +++ b/htroot/yacy/ui/css/base.css @@ -87,11 +87,23 @@ img.help { } /* YaCy Flexigrid ---------------------------*/ -.flexigrid div.fbutton .add { - background: url(../img/add.png) no-repeat center left; +.flexigrid div.fbutton .help { + background: url(../img-2/question_blue.png) no-repeat center left; } .flexigrid div.fbutton .delete { - background: url(../img/close.png) no-repeat center left; + background: url(../img-2/cancel.png) no-repeat center left; +} +.flexigrid div.fbutton .edit { + background: url(../img-2/pencil.png) no-repeat center left; +} +.flexigrid div.fbutton .import { + background: url(../img-2/download.png) no-repeat center left; +} +.flexigrid div.fbutton .rss { + background: url(../img-2/rss_round.png) no-repeat center left; +} +.flexigrid div.fbutton .xml { + background: url(../img-2/code.png) no-repeat center left; } .flexigrid div.fbutton .bookmark { background: url(../img/bookmark.png) no-repeat center left; diff --git a/htroot/yacy/ui/css/jquery.dialog.css b/htroot/yacy/ui/css/jquery.dialog.css index 77a14e695..d931bd7e3 100644 --- a/htroot/yacy/ui/css/jquery.dialog.css +++ b/htroot/yacy/ui/css/jquery.dialog.css @@ -25,7 +25,7 @@ .bmdialog.ui-dialog .ui-dialog-titlebar-close { width: 16px; height: 16px; - background: url(../img-2/cancel.png) no-repeat; + background: url(../img/cancel.png) no-repeat; position:absolute; top: 8px; right: 7px; diff --git a/htroot/yacy/ui/index.html b/htroot/yacy/ui/index.html index 414149cc6..b2b9f5ad6 100644 --- a/htroot/yacy/ui/index.html +++ b/htroot/yacy/ui/index.html @@ -112,13 +112,45 @@ $('#yoptions').trigger('update'); } } - }); - + }); + /* Initialize Bookmark Dialog */ + $("#bmadd").dialog({ + autoOpen: false, + height: 400, + width: 250, + resizable: false, + buttons: { + OK: bookmark, + Cancel: function() { $("#bmadd").dialog("close"); } + } + }); /* Load Sidebar */ $("#side1").load("sidebar/sidebar_1.html"); $("#side2").load("sidebar/sidebar_2.html"); }); - //]]> + //]]> + function bookmark() { + var url = $("input[@name='bm_url']").getValue(); + var title = $("textarea[@name='bm_title']").getValue(); + var desc = $("textarea[@name='bm_desc']").getValue(); + var tags = $("input[@name='bm_tags']").getValue() + var path = $("input[@name='bm_path']").getValue(); + var pub = $("select[@name='bm_public']").getValue(); + var query = "&url="+url+"&title="+title+"&description="+desc+"&tags="+tags+"&path="+path+"&public="+pub+"&add=create"; + $.ajax({ + type: "POST", + url: "/xml/bookmarks/posts/add_p.xml?login="+query, + dataType: "xml", + success: function(xml) { + $('#bmaddform').resetForm(); + $("#bm_url").unbind('blur'); + $("#bmadd").dialog("close"); + loadFolders(); + loadTagCloud(); + $tabs.tabs("load", 3); + } + }); + } @@ -138,6 +170,39 @@