mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-23 21:15:49 +02:00
Remove legacy update notification warnings
This commit is contained in:
parent
523d340ade
commit
fadea54f8d
@ -19,7 +19,6 @@
|
||||
//
|
||||
var createUpdateNotificationElement = function(version, download){
|
||||
var outdated = version === "unsupported";
|
||||
var tweetdick = version === "tweetdick";
|
||||
|
||||
var ele = $("#tweetdck-update");
|
||||
var existed = ele.length > 0;
|
||||
@ -37,15 +36,6 @@
|
||||
"<button class='btn btn-negative tdu-btn-dismiss'><span class='label'>Dismiss</span></button>",
|
||||
"</div>",
|
||||
"</div>"
|
||||
] : tweetdick ? [
|
||||
"<div id='tweetdck-update'>",
|
||||
"<p class='tdu-title'>TweetDick Ending</p>",
|
||||
"<p class='tdu-info'>Please, move to TweetDuck.</p>",
|
||||
"<div class='tdu-buttons'>",
|
||||
"<button class='btn btn-positive tdu-btn-unsupported'><span class='label'>Read More</span></button>",
|
||||
"<button class='btn btn-negative tdu-btn-dismiss'><span class='label'>Dismiss</span></button>",
|
||||
"</div>",
|
||||
"</div>"
|
||||
] : [
|
||||
"<div id='tweetdck-update'>",
|
||||
"<p class='tdu-title'>"+$TDU.brandName+" Update</p>",
|
||||
@ -118,10 +108,6 @@
|
||||
$TDU.openBrowser("https://github.com/chylex/TweetDuck/wiki/Supported-Systems");
|
||||
});
|
||||
|
||||
buttonDiv.children(".tdu-btn-tweetdick").click(function(){
|
||||
$TDU.openBrowser("https://github.com/chylex/TweetDick/wiki/Future-of-TweetDick");
|
||||
});
|
||||
|
||||
buttonDiv.children(".tdu-btn-dismiss,.tdu-btn-unsupported").click(function(){
|
||||
$TDU.onUpdateDismissed(version);
|
||||
ele.slideUp(function(){ ele.remove(); });
|
||||
@ -145,13 +131,6 @@
|
||||
|
||||
return;
|
||||
}
|
||||
else if ($TDU.brandName === "TweetDick"){
|
||||
if ($TDU.dismissedVersionTag !== "tweetdick"){
|
||||
createUpdateNotificationElement("tweetdick");
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
clearTimeout(updateCheckTimeoutID);
|
||||
updateCheckTimeoutID = setTimeout(runUpdateCheck, 1000*60*60); // 1 hour
|
||||
|
Loading…
Reference in New Issue
Block a user