Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #413 from radiant-player/fix-window-drag
Browse files Browse the repository at this point in the history
Fix query selector for app bar
  • Loading branch information
jacobwgillespie committed Nov 17, 2015
2 parents f0a85b1 + 276f84c commit e8af07b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion radiant-player-mac/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ - (IBAction) toggleVisualization:(id)sender
*/
- (IBAction) focusSearch:(id)sender
{
[webView stringByEvaluatingJavaScriptFromString:@"document.querySelector('.material-search').select()"];
[webView stringByEvaluatingJavaScriptFromString:@"document.querySelector('#material-one-middle input.sj-search-box').select()"];
}

/**
Expand Down
2 changes: 1 addition & 1 deletion radiant-player-mac/js/appbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (typeof window.GMAppBar === 'undefined') {
// Handle dragging of the application bar.
var exclude = []
.concat([].slice.call(document.querySelectorAll('.gm-nav-button')))
.concat(document.querySelector('#material-one-middle input.material-search').parentNode)
.concat(document.querySelector('#material-one-middle input.sj-search-box').parentNode)
.concat([].slice.call(document.querySelectorAll('#material-one-right > div:first-child > div:first-child > div:first-child > *')));

var appBar = document.querySelector('#material-app-bar');
Expand Down

0 comments on commit e8af07b

Please sign in to comment.