1
0
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:
chylex 2016-04-11 00:39:55 +02:00
parent 2834a9a443
commit f7265405d7
3 changed files with 6 additions and 7 deletions

View File

@ -3,7 +3,6 @@
using CefSharp.WinForms;
using System.Drawing;
using System;
using System.Text;
using System.Collections.Generic;
using TweetDick.Core.Handling;

View File

@ -1,5 +1,4 @@
using CefSharp;
using System;
namespace TweetDick.Core.Handling{
class ContextMenuHandler : IContextMenuHandler{

View File

@ -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(){