?
Referenced as Related to: # 5087
avatar smanzi
smanzi
11 Nov 2014

Try to pass any native bootstrap modal option as a parameter (e.g. "backdrop" => false), and you will see that it has no effect. This is normally not done by directly calling JHtmlBootstrap::modal() but JHtmlBootstrap::renderModal()

The JS generated to control these options is ineffective...

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
4.00

avatar smanzi smanzi - open - 11 Nov 2014
avatar jissues-bot jissues-bot - change - 11 Nov 2014
Labels Added: ?
avatar smanzi
smanzi - comment - 11 Nov 2014

My understanding is that the generated JS:

$('#$selector').modal($options)

is used to activate a modal and pass it some options, and not to set the options.
If this the case, we should parse the options in JHtmlBootstrap::renderModal() and add them as data- attributes to the .modal <div>

If this is the case modal() will become useless and should be substituted with an empty function for BC.

avatar smanzi
smanzi - comment - 11 Nov 2014

I have a working PR ready: will publish tomorrow...

avatar smanzi
smanzi - comment - 11 Nov 2014

We have PR #5087

avatar Bakual
Bakual - comment - 11 Nov 2014

Closing this issue in favor of PR

avatar Bakual Bakual - close - 11 Nov 2014
avatar Bakual Bakual - change - 11 Nov 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-11-11 21:53:52

Add a Comment

Login with GitHub to post a comment