-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/delete multiple images 77123524 #360
Conversation
@@ -705,3 +706,52 @@ pre.prettyprint { | |||
} | |||
|
|||
} | |||
|
|||
.styled-check { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neato!
4d185d8
to
9d4c6fe
Compare
@@ -29,6 +29,10 @@ | |||
end | |||
end | |||
|
|||
describe '#batch_destroy' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
5d2dd42
to
644354b
Compare
👍 |
base.checkboxStateHandler = function(e) { | ||
var $target = $(e.currentTarget); | ||
|
||
if($target.is(':checked')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optionally, I think you could just do something like this:
var checked = $target.is(':checked');
base.$el.find(base.options.deleteCheckbox).prop('checked', checked);
644354b
to
9369f1d
Compare
|
||
def self.batch_destroy(image_ids) | ||
count = 0 | ||
fail_list = image_ids.each_with_object(Set.new) do |id, fail_list| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shadowing outer local variable - fail_list
.
9369f1d
to
81900ab
Compare
expect(response).to redirect_to images_url | ||
end | ||
|
||
it '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty.
👍 - after removing the empty it |
👍 |
|
||
private | ||
|
||
def build_message(result) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome.
[finishes: #77123524]
[finishes: #78768594]
Allows users to multi select images but removes the checkbox option for panamax images.