Revision: 18228
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18228&view=rev
Author: hofman
Date: 2011-11-18 15:34:15 +0000 (Fri, 18 Nov 2011)
Log Message:
-----------
also refresh web groups by reloading the webview
Modified Paths:
--------------
trunk/bibdesk/BibDocument_Groups.m
trunk/bibdesk/BibDocument_Menus.m
trunk/bibdesk/English.lproj/Localizable.strings
Modified: trunk/bibdesk/BibDocument_Groups.m
===================================================================
--- trunk/bibdesk/BibDocument_Groups.m 2011-11-18 07:34:55 UTC (rev 18227)
+++ trunk/bibdesk/BibDocument_Groups.m 2011-11-18 15:34:15 UTC (rev 18228)
@@ -1223,13 +1223,21 @@
[[groups URLGroups] setValue:nil forKey:@"publications"];
[[groups scriptGroups] setValue:nil forKey:@"publications"];
[[groups searchGroups] setValue:nil forKey:@"publications"];
+ for (BDSKWebGroup *group in [groups webGroups]) {
+ if ([group isWebViewLoaded])
+ [[group webView] reload:nil];
+ }
if ([self hasURLGroupsSelected] || [self hasScriptGroupsSelected] || [self
hasSearchGroupsSelected])
[[[self selectedGroups] lastObject] publications];
}
- (IBAction)refreshSelectedGroups:(id)sender{
id group = [[self clickedOrSelectedGroups] lastObject];
- if ([group isExternal]) {
+ if ([group isWeb]) {
+ if ([group isWebViewLoaded])
+ [[group webView] reload:nil];
+ else NSBeep();
+ } else if ([group isExternal]) {
[group setPublications:nil];
if ([[self selectedGroups] containsObject:group])
[group publications];
Modified: trunk/bibdesk/BibDocument_Menus.m
===================================================================
--- trunk/bibdesk/BibDocument_Menus.m 2011-11-18 07:34:55 UTC (rev 18227)
+++ trunk/bibdesk/BibDocument_Menus.m 2011-11-18 15:34:15 UTC (rev 18228)
@@ -39,6 +39,7 @@
#import "BibDocument_Menus.h"
#import "BDSKGroupCell.h"
#import "BDSKGroup.h"
+#import "BDSKWebGroup.h"
#import "BibDocument_Groups.h"
#import "BibDocument_UI.h"
#import "BDSKMainTableView.h"
@@ -535,6 +536,9 @@
}else if([self hasSearchGroupsClickedOrSelected]){
[menuItem setTitle:NSLocalizedString(@"Refresh Search Group", @"Menu
item title")];
return YES;
+ }else if([self hasWebGroupsClickedOrSelected]){
+ [menuItem setTitle:NSLocalizedString(@"Refresh Web Group", @"Menu item
title")];
+ return [[[self clickedOrSelectedGroups] lastObject] isWebViewLoaded];
} else {
[menuItem setTitle:NSLocalizedString(@"Refresh External Group", @"Menu
item title")];
return NO;
Modified: trunk/bibdesk/English.lproj/Localizable.strings
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit