Skip to content

Move com_menus modals to Bootstrap#4661

Closed
dgrammatiko wants to merge 4 commits intojoomla:stagingfrom
dgrammatiko:admin_menu_module_modals_2
Closed

Move com_menus modals to Bootstrap#4661
dgrammatiko wants to merge 4 commits intojoomla:stagingfrom
dgrammatiko:admin_menu_module_modals_2

Conversation

@dgrammatiko
Copy link
Copy Markdown
Contributor

This is a repost of #4562 which was ruined in the rebase...

Move modals from mootools to Bootstrap

This is the last (I hope) PR to get all back end using bootstrap modals. The rest are: #4513 #4514 #4561.

Testing:

Apply patch and follow the images below to see where you should focus:

administrator/index.php?option=com_menus&view=menus
screenshot 2014-10-12 06 35 39

screenshot 2014-10-12 06 35 53

administrator/index.php?option=com_menus&view=item&layout=edit&id=101
screenshot 2014-10-12 06 36 12
screenshot 2014-10-12 06 36 24

screenshot 2014-10-12 06 36 36
screenshot 2014-10-12 06 36 46
———————

@tairedweb
Copy link
Copy Markdown

i follow at this step...
screen shot 2014-10-16 at 22 56 46
but when i click on breakcum... this popup said wrong at tile name.
screen shot 2014-10-16 at 22 56 50
and sometime when i'm click other position, it auto turn back...
screen shot 2014-10-16 at 22 59 37

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

@trangredweb
Copy link
Copy Markdown

When choose Module Assignment, when click module Main Menu, it turn back main : Edit Menu Item.
joomla administration menu manager edit menu item
When choose module "Similar Items (Public in )" in Module Assignment, popup don't show right module.
1

@jcata
Copy link
Copy Markdown
Contributor

jcata commented Oct 17, 2014

I have the same trouble that trangredweb, When I choose module like "breadcrumbs" in module assigment, popup don't show right module, and when I close this modal and choose another module go back (closing modal and select details tab).

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

@mrunalpittalia
Copy link
Copy Markdown

I have tested this patch, fasing same issue mentioned by trangredweb & jcata .

screen shot 2014-10-17 at 04 44 37

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

@LLNet
Copy link
Copy Markdown

LLNet commented Oct 17, 2014

screen shot 2014-10-17 at 06 27 35
The first error here.
and hey @trangredweb xD

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

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

@LLNet @mrunalpittalia @jcata @trangredweb I fixed the rendering the wrong module problem, can you test again?

Mind you that the styling might be off here because, this PR is part of all the others with the modals, but this one NOW will use the standard css, which of course will be too narrow. you can copy/paste the template.css from here https://github.com/joomla/joomla-cms/pull/4561/files

@RamaniBhadresh
Copy link
Copy Markdown

@test successfully

Step1 :- Access Comoponent menus like in url (?option=com_menus&view=menus).
Step2 :- select Linked Modules->modules(DropDown)->main menu(public in position 7) before press ctrl+shift+m.
Step3 :- if u press above shortcut then layout come as bootstrape or mobile layout
Step4 :- Then after select Step2.....

So test Successful and i cant find any bugs related to bootstreps...

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

@anibalsanchez
Copy link
Copy Markdown
Contributor

@test successfully, BUT, Step1 :- Access Comoponent menus like in url (?option=com_menus&view=menus).

Notice: Undefined property: MenusViewMenus::$id in /home/pwork02/9_Testing/j3/administrator/components/com_menus/views/menus/tmpl/default.php on line 32

Generates this Javascript function "function jSelectPosition_(name) {", note that the ID is missing



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

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

@anibalsanchez That code was already there. I’ll see what I can do

@mrunalpittalia
Copy link
Copy Markdown

@test Works successfully with new pull, tested successfully.

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

@TasolJaySoni
Copy link
Copy Markdown

@test sucessfully works with bootstrap without any issue..

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

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

@anibalsanchez no notice anymore!

@mrunalpittalia
Copy link
Copy Markdown

Moving to RTC as we have more than 2 successful tests

Note: counted successful test after new patch from dgt41

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

@Bakual Did I just kill travis?

@infograf768
Copy link
Copy Markdown
Member

Relaunched it. Let's see.

@Bakual
Copy link
Copy Markdown
Contributor

Bakual commented Nov 6, 2014

Travis kills itself nowadays 😄
There is an issue with Travis authenticating against GitHub for some reason. Looks like some rate limiting to me.
It happens now because part of Joomla is now powered using composer.

@infograf768
Copy link
Copy Markdown
Member

tested: I get
( ! ) Parse error: syntax error, unexpected end of file in root/administrator/components/com_menus/views/menus/tmpl/default.php on line 205

as a <?php endif; ?> is missing after </table>
also in this file, please respect indentation.
also
Notice: Undefined variable: canEdit in /root/administrator/components/com_menus/views/menus/tmpl/default.php on line 39

@infograf768
Copy link
Copy Markdown
Member

Also, I can't access to the Note field at bottom right of the modal, except if I enlarge drastically the window height

@infograf768
Copy link
Copy Markdown
Member

Also
( ! ) Notice: Undefined variable: item in ROOT/administrator/components/com_menus/views/item/tmpl/edit_modules.php on line 17

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

@infograf768 Now everything should be fine

@infograf768
Copy link
Copy Markdown
Member

We still have the modal sizing error:
screen shot 2014-11-06 at 17 29 30

and another Notice:
Notice: Trying to get property of non-object in root/administrator/components/com_menus/views/menus/tmpl/default.php on line 41

(that one can be solved by changing back in default.php to
foreach ($this->modules[$item->menutype] as &$module) :

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

@infograf768 All the iframes heights should be 600px, is that way too big? maybe some browser caching…
I reverted that foreach line to get rid of the notice

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

Hathor views:
screen shot 2014-11-06 at 10 05 49
screen shot 2014-11-06 at 10 06 11

@smanzi
Copy link
Copy Markdown

smanzi commented Nov 7, 2014

As strange as it may seems, applying this patch (with com_patchtester to J! 3.3.6) has side effects on the administrator login page: the background attributes for the .view_login CSS class are lost!

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

@smanzi But we don’t touch at all the login view and the additional css only affect the modals. Maybe a glitch in com_patchtester?
Here is the before
screen shot 2014-11-07 at 4 28 03
and the after
screen shot 2014-11-07 at 4 29 01
In my localhost. Which seems identical except that the colors for some reason (unknown to me) are altered

@smanzi
Copy link
Copy Markdown

smanzi commented Nov 7, 2014

Yeah... strange... in my template.css, after applying this PR I have (at line 6991):

.view-login {
    padding-top: 0;
}

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

This is updated so some tests to make this happen will be really appreciated! 😃

@anibalsanchez
Copy link
Copy Markdown
Contributor

Testing "Menu Item Type" Select button in menu item edition:

Object[]
ReferenceError: Joomla is not defined
})(jQuery, Joomla);

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

@anibalsanchez can’t reproduce it here. Can you clear browser’s cache and retry?

@knoby2015
Copy link
Copy Markdown

when i check this patch 4661, i have follow error. menu manager -> search field: when i write a menu name without result. then get i this error
screen shot 2015-03-14 at 10 08 35


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

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

@knoby2015 without this patch the search was working ok?

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

@knoby2015 @anibalsanchez I think now everything is fine, can you retest?

@knoby2015
Copy link
Copy Markdown

@anibalsanchez tx it´s running well


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

@anibalsanchez
Copy link
Copy Markdown
Contributor

@test ok in a fresh installation

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

@losedk Can I ask for a test here, so we move this to rtc?

@peterlose
Copy link
Copy Markdown
Contributor

@test all good!

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Mar 15, 2015

The last chages are successful tested. Moving here to RTC. Thanks!


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

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

@zero-24 can you RTC this?

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Mar 24, 2015

@DGT41 it is RTC on issues.joomla.org: http://issues.joomla.org/tracker/joomla-cms/4661 ;)


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

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

@zero-24 Oops my bad!

@roland-d roland-d added the RTC This Pull Request is Ready To Commit label Mar 25, 2015
@roland-d roland-d closed this in 60db5ba Apr 14, 2015
@dgrammatiko dgrammatiko deleted the admin_menu_module_modals_2 branch April 14, 2015 21:14
@zero-24 zero-24 added this to the Joomla! 3.4.2 milestone Apr 14, 2015
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just had a little glitch when creating a new menu item.
Adding `disabled="disabled"`` prevents that field from being validated on client side so that it will be possible to submit a new menu item without specifying a menu item type.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Confirmed! Removing this everything goes back to normal! I am pretty sure that this did pass the empty form tests few weeks ago 😕

@Erftralle
Copy link
Copy Markdown
Contributor

I had another problem with the code changes of this pull request here.

If you try to add a new menu item of type Single article for instance, then change to the tab Module Assignment to open a module for editing, close it again and change to the tab Details back again you will miss the Select button for the field Select article.
I suspect it's because of the introduction of window.parent.jQuery('.modal').modal('hide'); at some places of the code.

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

@Erftralle Thank you so much for finding those bugs, everything should be fine with #6804. I will appreciate if you can test that PR

@zero-24 zero-24 removed the RTC This Pull Request is Ready To Commit label Oct 14, 2015
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.