projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #3620
[arvados.git]
/
apps
/
workbench
/
app
/
controllers
/
application_controller.rb
diff --git
a/apps/workbench/app/controllers/application_controller.rb
b/apps/workbench/app/controllers/application_controller.rb
index 9e551bc179a529dba8411192bc24a447330f71fc..b211f51bdc2c761136b2441a89773e940fae068e 100644
(file)
--- a/
apps/workbench/app/controllers/application_controller.rb
+++ b/
apps/workbench/app/controllers/application_controller.rb
@@
-218,10
+218,10
@@
class ApplicationController < ActionController::Base
def choose
params[:limit] ||= 40
def choose
params[:limit] ||= 40
- find_objects_for_index if !@objects
respond_to do |f|
if params[:partial]
f.json {
respond_to do |f|
if params[:partial]
f.json {
+ find_objects_for_index if !@objects
render json: {
content: render_to_string(partial: "choose_rows.html",
formats: [:html]),
render json: {
content: render_to_string(partial: "choose_rows.html",
formats: [:html]),
@@
-230,6
+230,7
@@
class ApplicationController < ActionController::Base
}
end
f.js {
}
end
f.js {
+ find_objects_for_index if !@objects
render partial: 'choose', locals: {multiple: params[:multiple]}
}
end
render partial: 'choose', locals: {multiple: params[:multiple]}
}
end