bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

2.0-wip modals: a bug in the docs and one in effects

Open paglias opened this issue 14 years ago • 5 comments

Using Bootstrap 2.0 (downloaded 1 hour ago) I have found some problems:

1-) In the docs we can see this line of code

<\a href="#" class="close js-dismiss">× while the correct code is <\a href="#" class="close" data-dismiss="modal">× (i've added the slashes after the < because otherwise github would have rendered the html

2-) using "modal" and "fade" for the modal effects are fired only the first time the modal is opened while when closing it or re-opening effects doesn't work. Adding the hide class like in the docs example effects never work

paglias avatar Jan 25 '12 15:01 paglias

If you want to show snippets of code, use a series of backticks like so. Just remove the spaces between them in the example below and you're good to go.

  ` ` ` `
  ...your code here...
  ` ` ` `

I've fixed the first issue—that was an error in our docs. I'll ask @fat to take a look at the second issue though.

mdo avatar Jan 25 '12 17:01 mdo

Hi,

the fade effect as shown in docs is also not working with class="modal fade hide"

http://jsfiddle.net/anandanjaria/UJFjK/

anandanjaria avatar Jan 26 '12 00:01 anandanjaria

Ah, I see—you need to include the transitions javascript plugin. Add that and you should be good!

Let me know if that works out @anandanjaria and @paglias.

mdo avatar Jan 28 '12 04:01 mdo

works.... included transitions plugin and worked. But in documentation example, it is not mentioned that transition plugin is required.

Thanks a lot Mark.... looking forward to Jan 31st :)

anandanjaria avatar Jan 28 '12 04:01 anandanjaria

Just solved that—sorry!

mdo avatar Jan 28 '12 07:01 mdo