mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
log commit link
This commit is contained in:
@@ -138,11 +138,14 @@
|
||||
|
||||
# pragma mark WebKitDelegate methods
|
||||
|
||||
- (void)webView:(WebView *)sender runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame
|
||||
{
|
||||
NSLog(@"[Alert] message = %@",message);
|
||||
}
|
||||
|
||||
+ (BOOL)isSelectorExcludedFromWebScript:(SEL)sel
|
||||
{
|
||||
return NO; //![controller respondsToSelector:sel];
|
||||
// if (sel == @selector(selectCommit:)) return NO;
|
||||
// return YES;
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)webView:(WebView *)sender didClearWindowObject:(WebScriptObject *)windowObject forFrame:(WebFrame *)frame
|
||||
|
||||
@@ -846,5 +846,13 @@ enum {
|
||||
return iconRect;
|
||||
}
|
||||
|
||||
+ (BOOL)isSelectorExcludedFromWebScript:(SEL)sel
|
||||
{
|
||||
//NSLog(@"[%@ %s]: controller = %@ (%i)", [self class], _cmd, self,[self respondsToSelector:sel]);
|
||||
//return NO; //![controller respondsToSelector:sel];
|
||||
if (sel == @selector(selectCommit:)) return NO;
|
||||
return YES;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
var selectCommit = function(a) {
|
||||
window.Controler.selectCommit_(a);
|
||||
window.Controller.selectCommit_(a);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user