Browse Source

bug fixes

master
Hedgehog 11 years ago
parent
commit
47a9a98dd7
  1. 3
      css/style.css
  2. 2
      js/twister_formatpost.js

3
css/style.css

@ -532,6 +532,9 @@ input.userMenu-search-field:focus::-ms-input-placeholder { @@ -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
***********************************/

2
js/twister_formatpost.js

@ -105,7 +105,7 @@ function postToElem( post, kind ) { @@ -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();

Loading…
Cancel
Save