Remove search.
parent
93c28d6ffb
commit
f94ed8c309
|
@ -52,8 +52,7 @@ var services = {
|
|||
// Add colon to improve readability
|
||||
if (!/[\.:\-–—]\s*$/.test(this.options.pageTitle)) this.options.pageTitle += ':';
|
||||
return true;
|
||||
},
|
||||
searchUrl: 'https://twitter.com/search?src=typd&q={url}'
|
||||
}
|
||||
},
|
||||
mailru: {
|
||||
counterUrl: 'http://connect.mail.ru/share_count?url_list={url}&callback=1&func=?',
|
||||
|
@ -91,8 +90,7 @@ var services = {
|
|||
},
|
||||
popupUrl: 'http://vk.com/share.php?url={url}&title={title}',
|
||||
popupWidth: 550,
|
||||
popupHeight: 330,
|
||||
searchUrl: 'http://vk.com/feed?section=search&q=url%3A{url}'
|
||||
popupHeight: 330
|
||||
},
|
||||
odnoklassniki: {
|
||||
counterUrl: 'http://www.odnoklassniki.ru/dk?st.cmd=shareData&ref={url}&cb=?',
|
||||
|
@ -451,19 +449,10 @@ Button.prototype = {
|
|||
number = parseInt(number, 10);
|
||||
if (!number && !this.options.showZeroes) return;
|
||||
|
||||
var counterParams = {
|
||||
var counterElem = $('<span>', {
|
||||
'class': this.getElementClassNames('counter'),
|
||||
'text': number,
|
||||
};
|
||||
var counterElem;
|
||||
if (this.options.searchUrl) {
|
||||
counterParams.class += ' ' + classPrefix + 'counter_link';
|
||||
counterParams.href = makeUrl(this.options.searchUrl, {url: this.options.pageUrl});
|
||||
counterElem = $('<a>', counterParams);
|
||||
}
|
||||
else {
|
||||
counterElem = $('<span>', counterParams);
|
||||
}
|
||||
});
|
||||
this.widget.append(counterElem);
|
||||
|
||||
this.widget.trigger('counter.' + prefix, [this.service, number]);
|
||||
|
|
|
@ -111,13 +111,6 @@ tweak-inverted-text() {
|
|||
position:relative;
|
||||
font-weight:normal;
|
||||
cursor:default;
|
||||
&_link {
|
||||
color:inherit;
|
||||
+link-hovers() {
|
||||
cursor:pointer;
|
||||
text-decoration:underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__close {
|
||||
|
|
|
@ -35,14 +35,11 @@ hover-button(button, color, text=null) {
|
|||
border-radius:3px;
|
||||
line-height:18px;
|
||||
|
||||
&,
|
||||
&__counter_link {
|
||||
+link-hovers() {
|
||||
tweak-inverted-text();
|
||||
color:#fff;
|
||||
cursor:pointer;
|
||||
}
|
||||
}
|
||||
+link-hovers() {
|
||||
tweak-inverted-text();
|
||||
color:#fff;
|
||||
cursor:pointer;
|
||||
}
|
||||
}
|
||||
|
||||
&__button,
|
||||
|
|
|
@ -53,11 +53,6 @@ margin=3px;
|
|||
font-weight:normal;
|
||||
color:#666;
|
||||
color:hsla(0,0%,0%,.5);
|
||||
&_link {
|
||||
+link-base() {
|
||||
color:@color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__counter:before,
|
||||
|
|
|
@ -58,11 +58,6 @@ margin=.5em;
|
|||
padding:0 .5em;
|
||||
font-weight:normal;
|
||||
color:#000;
|
||||
&_link {
|
||||
+link-base() {
|
||||
color:@color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__close {
|
||||
|
|
Loading…
Reference in New Issue