-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
New keyboard shortcut in product page #6675
Conversation
Test Q&A OK |
We need to rebase @AntoineMille See with you this afternoon! |
2d27309
to
52bdb70
Compare
/** create keyboard event for save & active or desactive product*/ | ||
jwerty.key('ctrl+O', function(e) { | ||
e.preventDefault(); | ||
if ($('#form_step1_active').prop('checked') == true) |
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.
Why not just :
var step1Checkbox = $('#form_step1_active');
step1Checkbox.prop('checked', !step1Checkbox.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.
It's update. Thanks
/** create keyboard event for save & go preview */ | ||
jwerty.key('ctrl+V', function(e) { | ||
e.preventDefault(); | ||
send($('.product-footer .preview').attr('data-redirect'), $('.product-footer .preview').attr('target')); |
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.
Why not ? : (ping other, i'm not sure)
var productFooter = $('.product-footer .preview');
send(productFooter.attr('data-redirect'), productFooter.attr('target'));
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.
I'm agree with you to use var.
Thank you for your changes, i'm waiting test :) ! |
Every detail helps: versions, browser/server configuration, specific module/theme, etc.