Commit 9ced8352 authored by Manvel Saroyan's avatar Manvel Saroyan

Issue 3487 - Add links to the help tab

parent 255c003d
......@@ -336,19 +336,25 @@
<h1 class="i18n_options_faq_title"></h1>
<p class="i18n_options_faq_description"></p>
<p>
<a class="i18n_options_faq_title" href="#" target="_blank"></a>
<a id="link-faq" class="i18n_options_faq_title" target="_blank"></a>
</p>
<h1 class="i18n_options_forum_title"></h1>
<p class="i18n_options_forum_description"></p>
<p>
<a class="i18n_options_forum_link" href="#" target="_blank"></a>
<a id="link-forum" class="i18n_options_forum_link" target="_blank"></a>
</p>
<h1 class="i18n_options_media_title"></h1>
<p class="i18n_options_media_description"></p>
<p>
<a href="#" target="_blank">Twitter</a>
<a href="#" target="_blank">Facebook</a>
<a href="#" target="_blank">Google+</a>
<span id="share-general">
<a id="link-twitter" target="_blank">Twitter</a>
<a id="link-facebook" target="_blank">Facebook</a>
<a id="link-gplus" target="_blank">Google+</a>
</span>
<span id="share-chinese">
<a id="link-renren" target="_blank">renren</a>
<a id="link-weibo" target="_blank">weibo</a>
</span>
</p>
</div>
</div>
......
......@@ -825,6 +825,57 @@
}, false);
var customFilterEditButtons = document.querySelectorAll("#custom-filters-edit-wrapper button");
// Help tab
getDocLink("faq", function(link)
{
E("link-faq").setAttribute("href", link);
});
getDocLink("social_twitter", function(link)
{
E("link-twitter").setAttribute("href", link);
});
getDocLink("social_facebook", function(link)
{
E("link-facebook").setAttribute("href", link);
});
getDocLink("social_gplus", function(link)
{
E("link-gplus").setAttribute("href", link);
});
getDocLink("social_renren", function(link)
{
E("link-renren").setAttribute("href", link);
});
getDocLink("social_weibo", function(link)
{
E("link-weibo").setAttribute("href", link);
});
// Set forum link
ext.backgroundPage.sendMessage(
{
type: "app.get",
what: "platform"
},
function(platform)
{
ext.backgroundPage.sendMessage(
{
type: "app.get",
what: "application"
},
function(application)
{
if (platform == "chromium" && application != "opera")
application = "chrome";
getDocLink(application + "_support", function(link)
{
E("link-forum").setAttribute("href", link);
});
});
});
E("dialog").addEventListener("keydown", function(e)
{
switch (getKey(e))
......
......@@ -1143,6 +1143,12 @@ div[role="tooltip"] .notes p
-webkit-margin-end: 6px;
}
#share-general:lang(zh),
#share-chinese:not(zh)
{
display: none;
}
/*
Dialog
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment