]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Some initial testing w/ thumb gen
authorBrion Vibber <brion@status.net>
Mon, 8 Nov 2010 22:20:23 +0000 (14:20 -0800)
committerBrion Vibber <brion@status.net>
Mon, 8 Nov 2010 22:20:23 +0000 (14:20 -0800)
js/util.js

index 1be3f305355ae36a753b1adfc0884d068dce39bb..a4eb0fc28449b9bba8d0374e698665017dc6209c 100644 (file)
@@ -428,30 +428,15 @@ var SN = { // StatusNet
                 }).attr('title', SN.msg('showmore_tooltip'));
             }
             else {
-                $.fn.jOverlay.options = {
-                    method : 'GET',
-                    data : '',
-                    url : '',
-                    color : '#000',
-                    opacity : '0.6',
-                    zIndex : 9999,
-                    center : false,
-                    imgLoading : $('address .url')[0].href+'theme/base/images/illustrations/illu_progress_loading-01.gif',
-                    bgClickToClose : true,
-                    success : function() {
-                        $('#jOverlayContent').append('<button class="close">&#215;</button>');
-                        $('#jOverlayContent button').click($.closeOverlay);
-                    },
-                    timeout : 0,
-                    autoHide : true,
-                    css : {'max-width':'542px', 'top':'5%', 'left':'32.5%'}
-                };
+                //imgLoading : $('address .url')[0].href+'theme/base/images/illustrations/illu_progress_loading-01.gif',
 
-                notice.find('a.attachment').click(function() {
+                notice.find('a.attachment').each(function() {
                     var attachId = ($(this).attr('id').substring('attachment'.length + 1));
                     if (attachId) {
-                        $().jOverlay({url: $('address .url')[0].href+'attachment/' + attachId + '/ajax'});
-                        return false;
+                        var thumbUrl = $('address .url')[0].href+'attachment/' + attachId + '/thumb';
+                        var thumb = $('<div class="inline_thumb">Thumb: <img/></div>');
+                        thumb.find('img').attr('src', thumbUrl).last();
+                        notice.append(thumb);
                     }
                 });