? Success

User tests: Successful: Unsuccessful:

avatar JoomliC
JoomliC
12 May 2016

Improve modals to select and to edit a category.
Note: to be testing on staging.

Summary of Changes

  • When Bootstrap modal loads an iframe, BS tooltips with placement top are truncated at the top border of the iframe. (no auto placement in BS2). This PR sets the tooltip placement to bottom to fix this issue.
  • Remove inline CSS
  • Content is embedded in a container div (using already existing container-popup class for modal.php)
  • Add empty lines to improve the readability
  • Add viewport dimensions (new 3.6.0-dev)
  • Category edit modal is simplify (loading edit layout, so no dupplicated code)
  • Fix Edit button when current associated category in data is not the category selected
  • Control if modal, in edit layout
  • Add Save, Save & Close and Close button to the footer of the modal
  • Fix Edit modal not opening as a modal (missing bootstrap.renderModal for Edit modal)
  • Fix Uncaught SyntaxError: Unexpected token ) in select category modal

Testing Instructions (Staging + Multilanguages enabled!)

  • Go to Contents > Categories > open a categorie, and go to Associations tab to select associated category to open the modal.
  • Verify tooltip placement is bottom, and not truncated
  • Verify the modal size now is proportionnal to viewport (width 80/100th viewport width, and modal-body is 70/100th viewport height)
  • Select an associated category and save the category to show edit button
  • Open Edit modal and play with it ;-)

Select Category Before Patch
capture d ecran 2016-05-12 a 16 43 11

Select Category After Patch
capture d ecran 2016-05-12 a 16 42 16

Edit Category Before Patch
Open in a new window...
capture d ecran 2016-05-13 a 18 57 41

Edit Category After Patch
Open in a modal
capture d ecran 2016-05-13 a 18 58 39

avatar JoomliC JoomliC - open - 12 May 2016
avatar JoomliC JoomliC - change - 12 May 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 May 2016
Labels Added: ?
avatar JoomliC JoomliC - change - 12 May 2016
Title
Modal com categories improve select category
Modal com_categories: improve select category
avatar andrepereiradasilva
andrepereiradasilva - comment - 12 May 2016

in the modal, got a JS error Uncaught SyntaxError: Unexpected token ) on selecting a category.

BTW did you notice the lack of modal in the "Edit" button (the button appears after saving the category with the association)?

avatar andrepereiradasilva
andrepereiradasilva - comment - 12 May 2016

ups, the js error is already there without your PR ..., so tested with success

avatar andrepereiradasilva andrepereiradasilva - test_item - 12 May 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 12 May 2016

I have tested this item :white_check_mark: successfully on d738268

as said js error was already there so this PR does what is proposed to do.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10441.

avatar JoomliC
JoomliC - comment - 12 May 2016

@andrepereiradasilva yes error was there before, but prepare yourself for a new test, as i will fix it (this PR is a good occasion to fix issue!) ;-)

avatar brianteeman brianteeman - change - 12 May 2016
Category Components UI/UX
avatar joomla-cms-bot
joomla-cms-bot - comment - 12 May 2016

This PR has received new commits.

CC: @andrepereiradasilva


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10441.

avatar joomla-cms-bot
joomla-cms-bot - comment - 12 May 2016

This PR has received new commits.

CC: @andrepereiradasilva


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10441.

avatar joomla-cms-bot
joomla-cms-bot - comment - 12 May 2016

This PR has received new commits.

CC: @andrepereiradasilva


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10441.

avatar JoomliC
JoomliC - comment - 12 May 2016

@andrepereiradasilva JS error is now fixed here : 96e2bb0

But, i will put this PR in stand-by until tomorrow, as i will see to add directly in this PR, the modal to edit category and do a 2-in-1 PR for modals select and edit category ;-)

avatar andrepereiradasilva
andrepereiradasilva - comment - 12 May 2016

ok will wait then.

avatar joomla-cms-bot
joomla-cms-bot - comment - 13 May 2016

This PR has received new commits.

CC: @andrepereiradasilva


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10441.

avatar JoomliC JoomliC - change - 13 May 2016
The description was changed
avatar JoomliC
JoomliC - comment - 13 May 2016

@andrepereiradasilva That's ok!

  • Issue Fixed
  • And PR for both Select and Edit category modals ;-)

Ready for testing! (and to be then the base for other ones, if all is ok!) ????

avatar JoomliC JoomliC - change - 13 May 2016
Title
Modal com_categories: improve select category
Modal com_categories: improve Select & Edit Category buttons
avatar JoomliC JoomliC - change - 13 May 2016
Title
Modal com_categories: improve select category
Modal com_categories: improve Select & Edit Category buttons
avatar JoomliC JoomliC - change - 13 May 2016
Title
Modal com_categories: improve Select & Edit Category buttons
Modal com_categories: improve Select & Edit Category
avatar JoomliC JoomliC - change - 13 May 2016
Title
Modal com_categories: improve Select & Edit Category buttons
Modal com_categories: improve Select & Edit Category
avatar andrepereiradasilva andrepereiradasilva - test_item - 13 May 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 13 May 2016

I have tested this item :white_check_mark: successfully on 443897d

Tested with success.

Solves a lot of issues with the "Edit" modal, js errors and the "Clear" button.

Also now the "Edit" is a modal with "Close", "Save" and "Save & Close" buttons! :+1:


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10441.

avatar andrepereiradasilva
andrepereiradasilva - comment - 13 May 2016

@JoomliC really nice work!

The modals are getting much more user friendly.
Also you're solving a lot of bugs!

I hope all modals get reviewed for 3.6.0.

avatar JoomliC
JoomliC - comment - 13 May 2016

Thank you @andrepereiradasilva !
Yes, if this one for category is ok, i will update article and module (with save button) and will do the ones for contact and newsfeed.
I think i can do this for 3.6.0 ;-)

avatar BurtNL BurtNL - test_item - 13 May 2016 - Tested successfully
avatar BurtNL
BurtNL - comment - 13 May 2016

I have tested this item :white_check_mark: successfully on 443897d

Everything works as described. Great!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10441.

avatar brianteeman brianteeman - change - 13 May 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 13 May 2016

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10441.

avatar joomla-cms-bot joomla-cms-bot - change - 13 May 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 13 May 2016
Milestone Added:
avatar JoomliC
JoomliC - comment - 14 May 2016

@andrepereiradasilva @BurtNL Thanks for testing!
A new one just added for com_contacts #10457 ;-)

avatar joomla-cms-bot joomla-cms-bot - close - 16 May 2016
avatar rdeutz rdeutz - change - 16 May 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-05-16 16:22:31
Closed_By rdeutz
avatar rdeutz rdeutz - close - 16 May 2016
avatar rdeutz rdeutz - merge - 16 May 2016
avatar joomla-cms-bot joomla-cms-bot - change - 16 May 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment