Remove this, since selected aspects are now handled in the session hash
Not only this code is unnecessary with the new way selected aspects are stored, also on some edge cases could confuse the user for example when having two tabs opened and hitting refresh in one of them. Expecting selected aspects, but the "a_ids[]"-like url could instead set the new group of selected aspects.
This commit is contained in:
parent
f655b12e98
commit
27d9e7a8c6
2 changed files with 1 additions and 5 deletions
|
|
@ -53,7 +53,7 @@ class AspectStream < BaseStream
|
||||||
|
|
||||||
# @return [String] URL
|
# @return [String] URL
|
||||||
def link(opts={})
|
def link(opts={})
|
||||||
Rails.application.routes.url_helpers.aspects_path(opts.merge(:a_ids => aspect_ids))
|
Rails.application.routes.url_helpers.aspects_path(opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
# The first aspect in #aspects, given the stream is not for all aspects, or #aspects size is 1
|
# The first aspect in #aspects, given the stream is not for all aspects, or #aspects size is 1
|
||||||
|
|
|
||||||
|
|
@ -100,10 +100,6 @@
|
||||||
self.fadeOut();
|
self.fadeOut();
|
||||||
|
|
||||||
self.jXHR = $.getScript(newURL, function(data) {
|
self.jXHR = $.getScript(newURL, function(data) {
|
||||||
if (typeof(history.pushState) == 'function') {
|
|
||||||
history.pushState(null, document.title, newURL);
|
|
||||||
}
|
|
||||||
|
|
||||||
var textarea = $("#publisher textarea#status_message_fake_text"),
|
var textarea = $("#publisher textarea#status_message_fake_text"),
|
||||||
photozone = $("#photodropzone");
|
photozone = $("#photodropzone");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue