Browse files

Disable modal on small screens

  • Loading branch information...
1 parent 2670c9d commit 5ee23e1c47daa77e090465f414acefc08bbfa7f2 Ryan Merrill committed Apr 9, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 source/javascripts/public/public.js.coffee
View
5 source/javascripts/public/public.js.coffee
@@ -44,10 +44,15 @@ $ ->
breakpoint: "handheld"
enter: ->
$('.content-block h2').fitText(1.1)
+ $('.modal-btn').unbind()
jRes.addFunc
breakpoint: "tablet"
enter: ->
+ $('.modal-btn').click (e) ->
+ modal = $(this).attr('href')
+ $(modal).modal('show')
+ #($(this).attr('href')).modal('show')
#Page Scroller Plugin
$("body").pageScroller
navigation: ".nav"

0 comments on commit 5ee23e1

Please sign in to comment.