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

New keyboard shortcut in product page #6675

Merged
merged 3 commits into from
Oct 14, 2016

Conversation

AntoineMille
Copy link
Contributor

@AntoineMille AntoineMille commented Oct 13, 2016

Questions Answers
Branch? develop
Description? Please be specific when describing the PR.
Every detail helps: versions, browser/server configuration, specific module/theme, etc.
Type? new feature
Category? BO
BC breaks? no
Deprecations? no
Fixed ticket? http://forge.prestashop.com/browse/BOOM-1394
How to test? Go to the product page in the BO and test CTRL+V & CTRL+O

@prestonBot prestonBot added the Waiting for wording Status: action required, waiting for wording label Oct 13, 2016
@dSkrbic
Copy link
Contributor

dSkrbic commented Oct 13, 2016

Test Q&A OK

@dSkrbic dSkrbic added the QA ✔️ Status: check done, code approved label Oct 13, 2016
@aleeks
Copy link
Contributor

aleeks commented Oct 14, 2016

We need to rebase @AntoineMille See with you this afternoon!

@AlexEven AlexEven removed the Waiting for wording Status: action required, waiting for wording label Oct 14, 2016
/** create keyboard event for save & active or desactive product*/
jwerty.key('ctrl+O', function(e) {
e.preventDefault();
if ($('#form_step1_active').prop('checked') == true)
Copy link
Contributor

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

Copy link
Contributor Author

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'));
Copy link
Contributor

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

Copy link
Contributor Author

@AntoineMille AntoineMille Oct 14, 2016

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.

@aleeks
Copy link
Contributor

aleeks commented Oct 14, 2016

Thank you for your changes, i'm waiting test :) !

@aleeks aleeks merged commit fd39154 into PrestaShop:develop Oct 14, 2016
@xBorderie xBorderie changed the title New keyboard New keyboard shortcut in product page Oct 19, 2016
@prestonBot prestonBot added Waiting for wording Status: action required, waiting for wording and removed QA ✔️ Status: check done, code approved labels Oct 19, 2016
@xBorderie xBorderie added QA ✔️ Status: check done, code approved and removed Waiting for wording Status: action required, waiting for wording labels Oct 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA ✔️ Status: check done, code approved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants