From: Michael J. Rubinsky Date: Sat, 14 Aug 2010 19:37:52 +0000 (-0400) Subject: Use consistent 'Get More' style in social media blocks. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d0d3722563cccd6706e31c421d4978558c56fc22;p=horde.git Use consistent 'Get More' style in social media blocks. --- diff --git a/horde/js/facebookclient.js b/horde/js/facebookclient.js index 5193869e9..6481f6021 100644 --- a/horde/js/facebookclient.js +++ b/horde/js/facebookclient.js @@ -25,7 +25,7 @@ var Horde_Facebook = Class.create({ * opts.button * opts.instance * - * + * */ initialize: function(opts) { @@ -34,10 +34,10 @@ var Horde_Facebook = Class.create({ }, opts); this.getNewEntries(); - $(this.opts.getmore).observe('click', function() { this.getOlderEntries(); return false; }.bind(this)); - $(this.opts.button).observe('click', function() { this.updateStatus(); return false; }.bind(this)); + $(this.opts.getmore).observe('click', function(e) { this.getOlderEntries(); e.stop(); }.bind(this)); + $(this.opts.button).observe('click', function(e) { this.updateStatus(); e.stop(); }.bind(this)); }, - + /** * Update FB status. * @@ -114,7 +114,7 @@ var Horde_Facebook = Class.create({ getNewEntries: function() { - var params = { + var params = { 'actionID': 'getStream', 'notifications': this.opts.notifications, 'oldest': this.oldest, @@ -141,5 +141,5 @@ var Horde_Facebook = Class.create({ this.oldest = response.responseJSON.o; } } - + }); diff --git a/horde/lib/Block/fb_stream.php b/horde/lib/Block/fb_stream.php index a8de74341..4b7bf5043 100644 --- a/horde/lib/Block/fb_stream.php +++ b/horde/lib/Block/fb_stream.php @@ -189,7 +189,8 @@ EOT; // Build the stream feed. $html .= '
'; - $html .= '
' . _("Get More") . '
'; + $html .= '
'; + $html .= ''; // fbbody end return $html;