Permalink
Browse files

Fix goto dash button

  • Loading branch information...
1 parent f8b5092 commit 2f2b1a274b522bdaddadc73e56c7e2df20d6885a @jcutler committed Oct 11, 2012
View
@@ -1,6 +1,6 @@
{
"name": "Missing e",
- "version": "2.13.5",
+ "version": "2.13.6",
"description": "Useful features and customizations for Tumblr.",
"icons": { "16": "identity/missinge16.png",
"48": "identity/missinge48.png",
View
Deleted file not rendered
@@ -34,18 +34,14 @@ MissingE.packages.gotoDashPost = {
var div = document.getElementsByTagName("div")[0];
var controls = div.getElementsByTagName("a");
- for (i=0; noGoto && i<controls.length; i++) {
- var imgs = controls[i].getElementsByTagName('img');
- for (j=0; j<imgs.length; j++) {
- if (imgs[j].src ===
- extension.getURL('core/gotoDashPost/goto.png')) {
- noGoto = false;
- break;
- }
- }
- }
+ noGoto = document.getElementById("MissingE_gotoDashPost_link") == null;
if (noGoto) {
+ extension.insertStyle("#MissingE_gotoDashPost_link { " +
+ "padding-left:18px; } #MissingE_gotoDashPost_link::before { " +
+ "background: url('" +
+ extension.getURL('core/gotoDashPost/gotoIcon.png') +
+ "') 4px 3px no-repeat; }");
var last = controls[controls.length-1];
var following = false;
var you = true;
@@ -72,17 +68,8 @@ MissingE.packages.gotoDashPost = {
pid);
dashlnk.setAttribute('target', '_top');
dashlnk.id = "MissingE_gotoDashPost_link";
- var icn = document.createElement('img');
- icn.style.width = '50px';
- icn.style.height='20px';
- icn.style.borderWidth='0';
- icn.style.display='block';
- icn.style.cssFloat='left';
- icn.style.cursor='pointer';
- icn.alt='To Dash';
- icn.setAttribute('src',
- extension.getURL('core/gotoDashPost/goto.png'));
- dashlnk.appendChild(icn);
+ dashlnk.className = "btn icon";
+ dashlnk.textContent = "Dash";
div.insertBefore(dashlnk,last);
}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -3,7 +3,7 @@
"license": "GPL 3.0",
"author": "Jeremy Cutler",
"url": "http://missing-e.com",
- "version": "2.13.5",
+ "version": "2.13.6",
"fullName": "Missing e",
"id": "jid0-0PGffAcVvhUBieFYkRVVc5w6lIU",
"description": "Useful features and customizations for Tumblr.",
@@ -13,9 +13,9 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleShortVersionString</key>
- <string>2.13.5</string>
+ <string>2.13.6</string>
<key>CFBundleVersion</key>
- <string>213005</string>
+ <string>213006</string>
<key>Chrome</key>
<dict>
<key>Database Quota</key>
@@ -52,7 +52,7 @@
</dict>
<dict>
<key>DefaultValue</key>
- <string>2.13.5</string>
+ <string>2.13.6</string>
<key>Key</key>
<string>MissingE_version</string>
<key>Title</key>
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -1 +1 @@
-var currentVersion="2.13.5";
+var currentVersion="2.13.6";
View
@@ -99,7 +99,7 @@
<div id="uptodate"></div>
<div id="notuptodate"></div>
</div>
-<div version="2.13.5" id="versioncheck" style="display:none"></div>
+<div version="2.13.6" id="versioncheck" style="display:none"></div>
<header>
<nav>
<div id="nav_bar">
@@ -136,7 +136,7 @@
<span id="download_txt">Download</span>
<span id="installed_txt" style="display:none;">Installed</span>
<span id="update_txt" style="display:none;">Update</span>
- <span id="download_version">Version 2.13.5</span>
+ <span id="download_version">Version 2.13.6</span>
</a>
<div id="download_info">
By using this extension, you agree<br />
View
@@ -188,7 +188,7 @@ function(){return;}, loadChromeDownload);
<div id="uptodate"></div>
<div id="notuptodate"></div>
</div>
-<div version="2.13.5" id="versioncheck" style="display:none"></div>
+<div version="2.13.6" id="versioncheck" style="display:none"></div>
<header>
<nav>
<div id="nav_bar">

0 comments on commit 2f2b1a2

Please sign in to comment.