fixed specs for me and serveral others (thanks @jrichardlai); fixed cucumber
This commit is contained in:
parent
981d39d220
commit
9df8f83276
2 changed files with 5 additions and 3 deletions
|
|
@ -20,7 +20,7 @@ module Diaspora
|
||||||
order_field = opts[:order].split.first.to_sym
|
order_field = opts[:order].split.first.to_sym
|
||||||
opts[:hidden] ||= false
|
opts[:hidden] ||= false
|
||||||
order_with_table = 'posts.' + opts[:order]
|
order_with_table = 'posts.' + opts[:order]
|
||||||
opts[:max_time] = Time.at(opts[:max_time]) if opts[:max_time].instance_of?(Fixnum)
|
opts[:max_time] = Time.at(opts[:max_time]) if opts[:max_time].is_a?(Integer)
|
||||||
opts[:max_time] ||= Time.now + 1
|
opts[:max_time] ||= Time.now + 1
|
||||||
select_clause ='DISTINCT posts.id, posts.updated_at AS updated_at, posts.created_at AS created_at'
|
select_clause ='DISTINCT posts.id, posts.updated_at AS updated_at, posts.created_at AS created_at'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -346,8 +346,9 @@ var Publisher = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
Diaspora.widgets.subscribe("stream/reloaded", Publisher.initialize);
|
Publisher.cachedForm = Publisher.cachedSubmit =
|
||||||
|
Publisher.cachedInput = Publisher.cachedHiddenInput = false;
|
||||||
|
|
||||||
Publisher.bindServiceIcons();
|
Publisher.bindServiceIcons();
|
||||||
Publisher.bindPublicIcon();
|
Publisher.bindPublicIcon();
|
||||||
Publisher.bindAspectToggles();
|
Publisher.bindAspectToggles();
|
||||||
|
|
@ -368,4 +369,5 @@ var Publisher = {
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
Publisher.initialize();
|
Publisher.initialize();
|
||||||
|
Diaspora.widgets.subscribe("stream/reloaded", Publisher.initialize);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue