From d0d3722563cccd6706e31c421d4978558c56fc22 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 14 Aug 2010 15:37:52 -0400 Subject: [PATCH] Use consistent 'Get More' style in social media blocks. --- horde/js/facebookclient.js | 12 ++++++------ horde/lib/Block/fb_stream.php | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) 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; -- 2.11.0