mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-23 03:15:48 +02:00
Minor tweaks (remove unused using directives, tweak JS formatting)
This commit is contained in:
parent
2834a9a443
commit
f7265405d7
@ -3,7 +3,6 @@
|
||||
using CefSharp.WinForms;
|
||||
using System.Drawing;
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using TweetDick.Core.Handling;
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
using CefSharp;
|
||||
using System;
|
||||
|
||||
namespace TweetDick.Core.Handling{
|
||||
class ContextMenuHandler : IContextMenuHandler{
|
||||
|
@ -18,19 +18,20 @@
|
||||
// Function: Initializes TweetDick events. Called after the website app is loaded.
|
||||
//
|
||||
var initializeTweetDick = function(){
|
||||
// Settings button hook
|
||||
$("[data-action='settings-menu']").click(function(){
|
||||
setTimeout(function(){
|
||||
var menu = $(".js-dropdown-content").children("ul").first();
|
||||
if (menu.length == 0)return;
|
||||
|
||||
|
||||
menu.children(".drp-h-divider").last().after('<li class="is-selectable" data-tweetdick><a href="#" data-action>TweetDick</a></li><li class="drp-h-divider"></li>');
|
||||
|
||||
var tweetDickBtn = menu.children("[data-tweetdick]");
|
||||
|
||||
|
||||
var tweetDickBtn = menu.children("[data-tweetdick]").first();
|
||||
|
||||
tweetDickBtn.on("click","a",function(){
|
||||
$TD.openSettingsMenu();
|
||||
});
|
||||
|
||||
|
||||
tweetDickBtn.hover(function(){
|
||||
$(this).addClass("is-selected");
|
||||
},function(){
|
||||
|
Loading…
Reference in New Issue
Block a user