Skip to content

Commit 768d914

Browse files
committed
tap events only
no need for click when we have tap?
1 parent 53ae033 commit 768d914

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/assets/javascripts/recurring_select_dialog.js.coffee.erb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ window.RecurringSelectDialog =
7676

7777
mainEventInit: ->
7878
# Tap hooks are for jQueryMobile
79-
@outer_holder.on 'click tap', @outerCancel
80-
@content.on 'click tap', 'h1 a', @cancel
81-
@save_button = @content.find('input.rs_save').on "click tap", @save
82-
@content.find('input.rs_cancel').on "click tap", @cancel
79+
@outer_holder.on 'tap', @outerCancel
80+
@content.on 'tap', 'h1 a', @cancel
81+
@save_button = @content.find('input.rs_save').on "tap", @save
82+
@content.find('input.rs_cancel').on "tap", @cancel
8383

8484
freqInit: ->
8585
@freq_select = @outer_holder.find ".rs_frequency"
@@ -201,7 +201,7 @@ window.RecurringSelectDialog =
201201
if $.inArray(-1, @current_rule.hash.validations.day_of_month) != -1
202202
end_of_month_link.addClass("selected")
203203

204-
monthly_calendar.find("a").on "click tap", @dateOfMonthChanged
204+
monthly_calendar.find("a").on "tap", @dateOfMonthChanged
205205

206206
init_calendar_weeks: (section) =>
207207
monthly_calendar = section.find(".rs_calendar_week")
@@ -223,7 +223,7 @@ window.RecurringSelectDialog =
223223
$.each @current_rule.hash.validations.day_of_week, (key, value) ->
224224
$.each value, (index, instance) ->
225225
section.find("a[day='#{key}'][instance='#{instance}']").addClass("selected")
226-
monthly_calendar.find("a").on "click tap", @weekOfMonthChanged
226+
monthly_calendar.find("a").on "tap", @weekOfMonthChanged
227227

228228
toggle_month_view: =>
229229
week_mode = @content.find(".monthly_rule_type_week").prop("checked")

0 commit comments

Comments
 (0)