Giter Club home page Giter Club logo

bootstrap-modal-rails's People

Contributors

donnykurnia avatar ecaron avatar pablosalgadom avatar pikachuexe avatar vicentereig avatar westonganger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bootstrap-modal-rails's Issues

Cannot read property 'target' of undefined

Hi,
I get the error "Uncaught TypeError: Cannot read property 'target' of undefined". Modal gets loaded but when I try to close it it throws out this error and page gets locked. Its these lines on modelmanager js. I guess I have bootstrap namespace elements so I tried removing the function but it made other parts fail..finally removed "e" and the condition and it worked but this time modal dissapears onclick..

    // make sure the event target is the modal itself in order to prevent
// other components such as tabsfrom triggering the modal manager.
// if Boostsrap namespaced events, this would not be needed.
function targetIsSelf(callback){
    return function (e) {
          if (this === e.target){
            return callback.apply(this, arguments);
                }
            }
        }

My modal

   #app-score.modal.hide.fade{'aria-labelledby' => t('whatis_appscore'), 'aria-hidden' => true }
    .modal-header
      %button.close{ type: 'button', data: { dismiss: 'modal' }, 'aria-hidden' => true } ×
      %h3= t('whatis_appscore')
      .modal-body

How I call modal

  %medium.inline-block.why-facebook= link_to t('why_facebook'), '#why-facebook', data: { toggle:     'modal' }

You should update the readme

Hello everyone, i'm happily using this gem, but i had some trouble at first because of the outdated readme which says that in the gemfile i have to do this:

group :assets do
 gem 'bootstrap-modal-rails'
end

But that doesn't work in Rails 4, so i had to remove some code and let it like this:

gem 'bootstrap-modal-rails'

And it worked perfectly, i'm saying this because someone who is new in rails could thought that the gem has some bugs.

The same thing happens for the application.css, where you must write it different at the beginning and also add another css file before the bootstrap-modal, like this:

 *= require bootstrap-modal-bs3patch
 *= require bootstrap-modal

Hope it helps!

Change readme

This issue: jschr/bootstrap-modal#115

In your application stylesheet if you require bootstrap-modal before tree you will get margin-top and height issues. You should mention to require it after tree or by using one of the method described in the issue. This really needs to be in the readme.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.