Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

close button not visible #17

Open
axilaris opened this issue Mar 15, 2014 · 2 comments
Open

close button not visible #17

axilaris opened this issue Mar 15, 2014 · 2 comments

Comments

@axilaris
Copy link

I got modal working by following the instructions from the main website, https://github.com/dei79/jquery-modal-rails
and tried with the copy pasting below.

The basic dialog window is an overlay positioned within the viewport and is protected from page content (like select elements) shining through with an iframe. It has a title bar and a content area, and can be moved, resized and closed with the 'x' icon by default.

<%= link_to_modal "Demo Form", "#demo-form", :class=>"button" %>

the modal works but there is no close icon. And looking at the browser console it has this error

GET http://localhost:3000/images/close 404 (Not Found) jquery.js?body=1:6600

shouldnt it be
GET http://localhost:3000/assets/close.png ?

@chronosafe
Copy link

Adding the file extension to fixes it:

    background: image-url('close.png') no-repeat 0 0;

@ghost
Copy link

ghost commented Jun 29, 2014

Guys, it's easy as 1-2-3!

  1. Type 'bundle show jquery-modal', find the path of gem's folder (f. example it would be var/etc/)
  2. Edit with root the file, for example 'vi vendor/assets/stylesheets/jquery.modal.css.scss'. Find 'close' and edit it to 'close.png', 'spinner' to 'spinner.gif'
  3. No step 3! That's all!!

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

No branches or pull requests

2 participants