dei79 / jquery-modal-rails Goto Github PK
View Code? Open in Web Editor NEWThe simplest possible modal for jQuery for the Rails 3.1+ asset pipeline
License: MIT License
The simplest possible modal for jQuery for the Rails 3.1+ asset pipeline
License: MIT License
I verified that js and css files are loaded via asset pipeline. They are. When the link is clicked, the background darkens, but the modal never appears. I also tried a few things in the firebug, no errors are showing. I played with order of loaded assets, no luck. Im also using bootstrap 3.
When you add :remote => true it just redirects you to the page and does not actually open up the modal
Width / height parameter don't affects the modal size.
<%= link_to_modal 'New User Modal Sized', new_user_path, :width=> "600", :height =>"400", :remote => true %>
or
<%= link_to_modal 'New User Modal Sized', new_user_path, :width=> "950", :height =>"800", :remote => true %>
Keeps the same size.
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 ?
IF another modal is linked to from within a modal, it will overlay it on top of the previous modal.
Hi,
The Jquery ui datepicker control will not appear in the modal form. Apparently this is a common problem too when using the regular version of these control. Is there a suitable workaround when using your gem? I'm btw using a gem version version of the datepicker too. https://github.com/albertopq/jquery_datepicker.
Thanks
Hey Dirk,
Firstly, thank you for creating this. This gives a viable means of modal implementation in Rails, especially if one is boycotting Bootstrap (I know, I know), and this works better IMO. It is easier to install and use as you're not having to write out all the extra AJAX calls or partial reference in a .js.erb
file.
Secondly, if you are still looking for someone to take over this project, I would be more than happy to take on the task.
Thanks for your consideration,
Michael
When trying to install this gem on rails 5, I get
jquery-modal-rails (~> 0.0.4) was resolved to 0.0.4, which depends on
railties (< 5.0, >= 3.2.0)
Is there a plan to upgrade this gem to support rails 5? Are there common work-arounds in the meantime?
Please support functions as "SqueezeBox".
Is there any way to reload modal with user registration instead of redirecting me to user registration page?
Hi. i'm using standart google maps script, but the div in which it renders shows only part of map and it's acting strange. what can cause this?
I have a multi step form that I call into a modal box using link_to_modal. It renders properly but i loose the functionality. For example, on the regular form page, I am able to click an option and the next step flies in, until the last step is chosen and the form submits. When I open it up in the modal box, I click the first step and it never goes to the second step. Its like frozen or something? Please help. I cant figure out why the form works regular and not in the modal box?
Demoapp is not necessary inside the gem.
Hello, as said in the subject the close button is not visible.
Can I send a snapshot to understand what I mean?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.