Open qops1981 opened 9 years ago
P.S. Cancel Button Works Fine.
Taking a look at this. The first thing that I'd note is that you don't need both confirm_with_reveal.js
and confirm_with_reveal.min.js
to be included, just one or the other. Those are two versions of the same file (the latter is minified ahead of time for people who can't or don't want to use Rails' asset pipeline or Grunt or Gulp or whatever to do that for them).
Fixed with this in code on 49 line, before: if ($el.is('form, :input')) { return $el.closest('form').removeAttr('data-confirm').submit(); }
After: if ($el.is('form, :input')) { modal.foundation('reveal', 'close'); return $el.closest('form').removeAttr('data-confirm').submit(); }
I got everything set up but when I click the OK button. Nothing happens. I don't go to a different page or anything.
I can say I only copied the two JS files from the Build folder over to my sites _js directory. I'm not sure if there were other important files that I missed.
Using FireFox 32.0.3 In Head:
In Body:
in Footer: