* opts.button
* opts.instance
*
- *
+ *
*/
initialize: function(opts)
{
}, 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.
*
getNewEntries: function()
{
- var params = {
+ var params = {
'actionID': 'getStream',
'notifications': this.opts.notifications,
'oldest': this.oldest,
this.oldest = response.responseJSON.o;
}
}
-
+
});
// Build the stream feed.
$html .= '<div id="' . $instance . '_fbcontent" style="height:' . (empty($this->_params['height']) ? 300 : $this->_params['height']) . 'px;overflow-y:auto;"></div>';
- $html .= '<div class="control fbgetmore"><a href="#" id="' . $instance . '_getmore">' . _("Get More") . '</a></div>';
+ $html .= '<div class="fbgetmore"><input type="button" id="' . $instance . '_getmore" class="button" value="' . _("Get More") . '"></div>';
+
$html .= '</div>'; // fbbody end
return $html;