mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-01 08:34:11 +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 CefSharp.WinForms;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System;
|
using System;
|
||||||
using System.Text;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using TweetDick.Core.Handling;
|
using TweetDick.Core.Handling;
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using CefSharp;
|
using CefSharp;
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace TweetDick.Core.Handling{
|
namespace TweetDick.Core.Handling{
|
||||||
class ContextMenuHandler : IContextMenuHandler{
|
class ContextMenuHandler : IContextMenuHandler{
|
||||||
|
@ -18,19 +18,20 @@
|
|||||||
// Function: Initializes TweetDick events. Called after the website app is loaded.
|
// Function: Initializes TweetDick events. Called after the website app is loaded.
|
||||||
//
|
//
|
||||||
var initializeTweetDick = function(){
|
var initializeTweetDick = function(){
|
||||||
|
// Settings button hook
|
||||||
$("[data-action='settings-menu']").click(function(){
|
$("[data-action='settings-menu']").click(function(){
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
var menu = $(".js-dropdown-content").children("ul").first();
|
var menu = $(".js-dropdown-content").children("ul").first();
|
||||||
if (menu.length == 0)return;
|
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>');
|
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(){
|
tweetDickBtn.on("click","a",function(){
|
||||||
$TD.openSettingsMenu();
|
$TD.openSettingsMenu();
|
||||||
});
|
});
|
||||||
|
|
||||||
tweetDickBtn.hover(function(){
|
tweetDickBtn.hover(function(){
|
||||||
$(this).addClass("is-selected");
|
$(this).addClass("is-selected");
|
||||||
},function(){
|
},function(){
|
||||||
|
Loading…
Reference in New Issue
Block a user