rev update
This commit is contained in:
parent
4b36e41b09
commit
ea13ece890
@ -545,7 +545,7 @@ class Photo {
|
|||||||
else {
|
else {
|
||||||
$r = q("INSERT INTO `photo`
|
$r = q("INSERT INTO `photo`
|
||||||
( `uid`, `contact-id`, `resource-id`, `created`, `edited`, `filename`, type, `album`, `height`, `width`, `data`, `scale`, `profile`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid` )
|
( `uid`, `contact-id`, `resource-id`, `created`, `edited`, `filename`, type, `album`, `height`, `width`, `data`, `scale`, `profile`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid` )
|
||||||
VALUES ( %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', %d, %d, '%s', '%s', '%s', '%s' )",
|
VALUES ( %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', %d, %d, '%s', '%s', '%s', '%s' )",
|
||||||
intval($uid),
|
intval($uid),
|
||||||
intval($cid),
|
intval($cid),
|
||||||
dbesc($rid),
|
dbesc($rid),
|
||||||
|
69
js/main.js
69
js/main.js
@ -260,6 +260,10 @@ function updateConvItems(mode,data) {
|
|||||||
}
|
}
|
||||||
if(mode === 'replace') {
|
if(mode === 'replace') {
|
||||||
// clear existing content
|
// clear existing content
|
||||||
|
$('.thread-wrapper').remove();
|
||||||
|
|
||||||
|
prev = 'threads-begin';
|
||||||
|
|
||||||
$('.thread-wrapper',data).each(function() {
|
$('.thread-wrapper',data).each(function() {
|
||||||
var ident = $(this).attr('id');
|
var ident = $(this).attr('id');
|
||||||
|
|
||||||
@ -677,42 +681,6 @@ function previewTheme(elm) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This can be used for dynamic "show more" based purely on the
|
|
||||||
// height of the enclosed HTML (which has overflow: hidden).
|
|
||||||
// if ($(el).vScrollable()) {
|
|
||||||
// show_more_link(el);
|
|
||||||
// }
|
|
||||||
// when link is clicked do $(el).css('overflow','visible')
|
|
||||||
//
|
|
||||||
// We do this by cloning the element in question but in a hidden div which displays overflow content and compare the heights
|
|
||||||
// of the two elements. Then we remove the hidden div we just created.
|
|
||||||
|
|
||||||
(function($) {
|
|
||||||
$.fn.vScrollable = function() {
|
|
||||||
return this.each(function() {
|
|
||||||
var el = $(this);
|
|
||||||
var tooHigh = false;
|
|
||||||
|
|
||||||
if(el.css("overflow") == "hidden") {
|
|
||||||
var text = el.html();
|
|
||||||
var t = $(this.cloneNode(true))
|
|
||||||
.hide()
|
|
||||||
.css('position', 'absolute')
|
|
||||||
.css('overflow', 'visible')
|
|
||||||
.width(el.width())
|
|
||||||
.height('auto')
|
|
||||||
;
|
|
||||||
el.after(t);
|
|
||||||
tooHigh = (t.height() > el.height());
|
|
||||||
el.parentNode.removeChild(el);
|
|
||||||
}
|
|
||||||
return tooHigh;
|
|
||||||
});
|
|
||||||
};
|
|
||||||
})(jQuery);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
jQuery.timeago.settings.strings = {
|
jQuery.timeago.settings.strings = {
|
||||||
@ -735,6 +703,35 @@ jQuery.timeago.settings.strings = {
|
|||||||
numbers: tago17
|
numbers: tago17
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//$('.wall-item-content').each(function() {
|
||||||
|
|
||||||
|
// var totalHeight = 0;
|
||||||
|
// $(this).children().each(function(){
|
||||||
|
// totalHeight += $(this).outerHeight(true); // true = include margins
|
||||||
|
// });
|
||||||
|
// if(totalHeight > 400) {
|
||||||
|
// $(this).css({'overflow-y':'hidden','max-height' : '400px'});
|
||||||
|
|
||||||
|
// }
|
||||||
|
// else {
|
||||||
|
// $(this).css('overflow-y','visible');
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
|
||||||
|
|
||||||
|
$('.wall-item-content').css({'overflow-y':'hidden','max-height' : '400px'});
|
||||||
|
|
||||||
|
$('.wall-item-content').focus(
|
||||||
|
function() {
|
||||||
|
$(this).css('overflow-y','visible')
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.wall-item-content').focusout(
|
||||||
|
function() {
|
||||||
|
$(this).css( { 'overflow-y' : 'hidden','max-height' : '400px'});
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
$("abbr.wall-item-ago-time").timeago();
|
$("abbr.wall-item-ago-time").timeago();
|
||||||
});
|
});
|
@ -1 +1 @@
|
|||||||
2012-07-23.24
|
2012-07-24.25
|
||||||
|
@ -1124,8 +1124,9 @@ input#dfrn-url {
|
|||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
/*margin-bottom: 20px;*/
|
/*margin-bottom: 20px;*/
|
||||||
/*padding: 20px;*/
|
/*padding: 20px;*/
|
||||||
max-height: 400px;
|
/* max-height: 400px; */
|
||||||
overflow: auto;
|
/* overflow-x: auto; */
|
||||||
|
/* overflow-y: auto; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.wall-item-content img {
|
.wall-item-content img {
|
||||||
|
Reference in New Issue
Block a user