bug fixes

This commit is contained in:
Hedgehog 2014-04-16 21:51:48 +04:00
parent c32eb28081
commit 47a9a98dd7
2 changed files with 4 additions and 1 deletions

View File

@ -532,6 +532,9 @@ input.userMenu-search-field:focus::-ms-input-placeholder {
color: rgba( 0, 0, 0, .7 );
padding: 0 75px 0 15px;
}
.config-menu {
right: 0;
}
/***********************************
********************* MINI PROFILE
***********************************/

View File

@ -105,7 +105,7 @@ function postToElem( post, kind ) {
var previewContainer = elem.find('.preview-container'), postText = elem.find(".post-text");
var postLink = postText.find("a[rel='nofollow']")[0] ? postText.find("a[rel='nofollow']")[0].href : '';
var ytRegExp = /(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?/i;
var vimeoRegExp = /http:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/i;
var vimeoRegExp = /http[s]?:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/i;
if (postLink && localStorage['imagesPreview'] == 'enable' && (/(\.jpg)|(\.gif)|(\.png)|(\.jpeg)|(\.jpe)/i.test(postLink) || /https:\/\/img.bi/i.test(postLink))){
previewContainer.show();