? Success

User tests: Successful: Unsuccessful:

avatar dgt41
dgt41
10 Oct 2014

Select image field (field type media) is using mootools modal.
Without affecting in anyway the logic of the field we can use jQuery and bootstrap.

This needs some visual fixes as the rendered modal needs some css to get to a more appropriate size.
Feel free to submit some ideas or code!

B/C
Should be 100% compatible

Test:
Apply the patch
Go to administrator -> global configuration
and check the functionality of Offline image.
Everything should be ok (except the size of the modal)

avatar dgt41 dgt41 - open - 10 Oct 2014
avatar jissues-bot jissues-bot - change - 10 Oct 2014
Labels Added: ?
avatar dgt41 dgt41 - reference | 6492af6 - 11 Oct 14
04379ed 11 Oct 2014 avatar dgt41 cs
avatar brianteeman brianteeman - test_item - 11 Oct 2014 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 11 Oct 2014

The styling on this is off, there is a size issue with white space at the bottom AND there is now the word Select at the top

before

screen shot 2014-10-11 at 05 22 33

after

screen shot 2014-10-11 at 05 22 48

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

avatar dgt41
dgt41 - comment - 11 Oct 2014

Before:
screenshot 2014-10-11 17 17 29

Now it should act exactly as the old modal + now it is responsive
screenshot 2014-10-11 17 11 05

avatar brianteeman
brianteeman - comment - 11 Oct 2014

Why have you added the title Select or upload an image?
On 11 Oct 2014 15:12, "Dimitri Grammatiko" notifications@github.com wrote:

Now it should act exactly as the old modal + now it is responsive
[image: screenshot 2014-10-11 17 11 05]
https://cloud.githubusercontent.com/assets/3889375/4602869/a1404768-5150-11e4-9e47-55d0a39c4523.png


Reply to this email directly or view it on GitHub
#4513 (comment).

avatar dgt41
dgt41 - comment - 11 Oct 2014

Bootstrap modal needs a title: http://getbootstrap.com/2.3.2/javascript.html#modals
If we leave it blank the layout gets ugly, I guess that’s the drawback here, we add another string

avatar brianteeman
brianteeman - comment - 11 Oct 2014

@infograf thought s on adding another string etc
On 11 Oct 2014 16:52, "Dimitri Grammatiko" notifications@github.com wrote:

Bootstrap modal needs a title:
http://getbootstrap.com/2.3.2/javascript.html#modals
If we leave it blank the layout gets ugly, I guess that’s the drawback
here, we add another string


Reply to this email directly or view it on GitHub
#4513 (comment).

avatar dgt41 dgt41 - reference | 6983f9e - 12 Oct 14
avatar infograf768
infograf768 - comment - 12 Oct 2014

@brianteeman
No problem adding new strings in 3.4.0

avatar dgt41
dgt41 - comment - 12 Oct 2014

@brianteeman Can you provide some appropriate titles for the modals, so I don’t make a bunch of commits?
The PR are #4514 #4561 #4562 #4563 #4575

avatar dgt41 dgt41 - reference | 1052a5b - 12 Oct 14
avatar dgt41 dgt41 - change - 13 Oct 2014
The description was changed
avatar dgt41
dgt41 - comment - 13 Oct 2014

@Bakual how can I solve this:

This pull request contains merge conflicts that must be resolved.
?

avatar Bakual
Bakual - comment - 13 Oct 2014

That's very likely due to our friends from the codestyle sprint :smile:

What you need to do is update your branch https://github.com/dgt41/joomla-cms/tree/media_field_bs_modal to current staging and resolve any conflicts that may have occured.

There are two possible ways of getting the branch updated:

  • Easy: Just merge staging (from the joomla/joomla-cms repo) into your branch. This will create a "merge-commit".
  • Nice: Rebase your branch with staging. This way, git will kind of rewind your changes, apply all commits from staging and then reapply your commits again. If done properly your PR will still look exactly the same as now, with only your commits.
4f2b4df 13 Oct 2014 avatar dgt41 cs
avatar dgt41 dgt41 - reference | 71d22a3 - 13 Oct 14
avatar dgt41 dgt41 - reference | 0dcf2b9 - 14 Oct 14
avatar nicksavov nicksavov - change - 16 Oct 2014
Labels Added: ?
avatar zoom009 zoom009 - test_item - 17 Oct 2014 - Tested successfully
avatar suredweb suredweb - test_item - 17 Oct 2014 - Tested unsuccessfully
avatar trangredweb trangredweb - test_item - 17 Oct 2014 - Tested successfully
avatar micker micker - test_item - 17 Oct 2014 - Tested successfully
avatar rajeshstarlite
rajeshstarlite - comment - 17 Oct 2014

@test, it works fine.

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

avatar rajeshstarlite rajeshstarlite - test_item - 17 Oct 2014 - Tested successfully
avatar mrunalpittalia mrunalpittalia - change - 17 Oct 2014
Status Pending Ready to Commit
avatar mrunalpittalia
mrunalpittalia - comment - 17 Oct 2014

Moving to RTC as issue patch more than 2 successfull tests

avatar dgt41
dgt41 - comment - 17 Oct 2014

@Bakual and the rest of the PLT:

The PRs regarding Media Field, User Field and Content History are also used in the front end. That might break the rendered design IF THE TEMPLATE is not BOOTSTRAP compatible. (the old modal uses it’s own css file). I wrote it!

avatar brianteeman brianteeman - change - 17 Oct 2014
Status Ready to Commit Needs Review
avatar dgt41
dgt41 - comment - 17 Oct 2014

For B/C I reverted the option to use the mootools modal in front end. Lets NOT break every site out there.
Please test again

377b5a6 18 Oct 2014 avatar dgt41 cs
avatar Bakual
Bakual - comment - 19 Oct 2014

The PRs regarding Media Field, User Field and Content History are also used in the front end. That might break the rendered design IF THE TEMPLATE is not BOOTSTRAP compatible. (the old modal uses it’s own css file). I wrote it!

I'm sorry to say, but if it's going to break templates that worked fine before, then this will obviously not pass. We will need a different approach then.

avatar dgt41
dgt41 - comment - 19 Oct 2014

I closed all 4 requests that infect also the front end. I will do them again as soon as #3231 is committed! Better safe than sorry…

avatar dgt41 dgt41 - close - 19 Oct 2014
avatar dgt41 dgt41 - close - 19 Oct 2014
avatar dgt41 dgt41 - change - 19 Oct 2014
Status Needs Review Closed
Closed_Date 0000-00-00 00:00:00 2014-10-19 16:04:16
avatar dgt41 dgt41 - reference | ee6621e - 6 Nov 14
avatar dgt41 dgt41 - reference | ac35438 - 6 Nov 14
avatar dgt41 dgt41 - head_ref_deleted - 14 Dec 2014
avatar dgt41 dgt41 - reference | 9d0aecf - 28 Dec 14
avatar dgt41 dgt41 - reference | 00485ef - 28 Dec 14
avatar dgt41 dgt41 - reference | 222b633 - 28 Dec 14
avatar dgt41 dgt41 - reference | 7516ca0 - 28 Dec 14
avatar dgt41 dgt41 - reference | e3f037e - 12 Mar 15
avatar dgt41 dgt41 - reference | f6149e5 - 12 Mar 15

Add a Comment

Login with GitHub to post a comment