Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

argvader
Copy link
Collaborator

[finishes: #77123524]
[finishes: #78768594]

Allows users to multi select images but removes the checkbox option for panamax images.

@@ -705,3 +706,52 @@ pre.prettyprint {
}

}

.styled-check {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neato!

@argvader argvader force-pushed the feature/delete-multiple-images-77123524 branch from 4d185d8 to 9d4c6fe Compare September 15, 2014 19:05
@@ -29,6 +29,10 @@
end
end

describe '#batch_destroy' do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@argvader argvader force-pushed the feature/delete-multiple-images-77123524 branch 2 times, most recently from 5d2dd42 to 644354b Compare September 17, 2014 13:30
@dharmamike
Copy link
Collaborator

👍

base.checkboxStateHandler = function(e) {
var $target = $(e.currentTarget);

if($target.is(':checked')) {
Copy link
Contributor

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);

@argvader argvader force-pushed the feature/delete-multiple-images-77123524 branch from 644354b to 9369f1d Compare September 17, 2014 15:15

def self.batch_destroy(image_ids)
count = 0
fail_list = image_ids.each_with_object(Set.new) do |id, fail_list|

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.

@argvader argvader force-pushed the feature/delete-multiple-images-77123524 branch from 9369f1d to 81900ab Compare September 17, 2014 15:18
expect(response).to redirect_to images_url
end

it ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty.

@alexwelch
Copy link
Contributor

👍 - after removing the empty it

@rheinwein
Copy link
Collaborator

👍


private

def build_message(result)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome.

@argvader argvader closed this Sep 17, 2014
@argvader argvader deleted the feature/delete-multiple-images-77123524 branch September 17, 2014 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants