Better debugging and fix click on mobile devices that implement draggable
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
App.SectionTabHeaderComponent= Ember.Component.extend DragNDrop.Droppable,
|
App.SectionTabHeaderComponent= Ember.Component.extend
|
||||||
layoutName: 'section/tab-header'
|
layoutName: 'section/tab-header'
|
||||||
classNameBindings: ['section_header_class', 'section_active:active']
|
classNameBindings: ['section_header_class', 'section_active:active']
|
||||||
classNames: ['section-tab-header']
|
classNames: ['section-tab-header']
|
||||||
|
|||||||
@@ -29,13 +29,13 @@ DragNDrop.Draggable = Ember.Mixin.create
|
|||||||
touchStart: (ev)->
|
touchStart: (ev)->
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
target = @$()
|
target = @$()
|
||||||
return unless target.prop 'draggable'
|
|
||||||
touch = ev.originalEvent.changedTouches[0]
|
touch = ev.originalEvent.changedTouches[0]
|
||||||
@touchStartEvent =
|
@touchStartEvent =
|
||||||
left: parseFloat(target.css('left'))
|
left: parseFloat(target.css('left'))
|
||||||
top: parseFloat(target.css('top'))
|
top: parseFloat(target.css('top'))
|
||||||
pageX: touch.pageX
|
pageX: touch.pageX
|
||||||
pageY: touch.pageY
|
pageY: touch.pageY
|
||||||
|
return unless target.prop 'draggable'
|
||||||
|
|
||||||
touchMove: (ev)->
|
touchMove: (ev)->
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
|
|||||||
@@ -16,27 +16,17 @@ Qwaiter::Application.configure do
|
|||||||
|
|
||||||
config.ember.variant = :development
|
config.ember.variant = :development
|
||||||
|
|
||||||
config.action_controller.asset_host = "http://localhost:3000"
|
config.action_controller.asset_host = "http://#{ENV['MOZO_LOCAL_IP'] || 'localhost'}:3000"
|
||||||
# config.web_console.automount = true
|
# config.web_console.automount = true
|
||||||
|
|
||||||
# Don't care if the mailer can't send
|
# Don't care if the mailer can't send
|
||||||
config.action_mailer.raise_delivery_errors = false
|
config.action_mailer.raise_delivery_errors = false
|
||||||
config.action_mailer.delivery_method = :letter_opener
|
config.action_mailer.delivery_method = :letter_opener
|
||||||
config.action_mailer.default_url_options = {
|
config.action_mailer.default_url_options = {
|
||||||
host: 'localhost',
|
host: ENV['MOZO_LOCAL_IP'] || 'localhost',
|
||||||
port: 3000
|
port: 3000
|
||||||
}
|
}
|
||||||
|
|
||||||
config.action_mailer.smtp_settings = {
|
|
||||||
address: "smtp.gmail.com",
|
|
||||||
port: 587,
|
|
||||||
domain: "atool.nl",
|
|
||||||
authentication: :plain,
|
|
||||||
user_name: "bterkuile@companytools.nl",
|
|
||||||
password: "BjTKct22",
|
|
||||||
enable_starttls_auto: true
|
|
||||||
}
|
|
||||||
|
|
||||||
# Print deprecation notices to the Rails logger
|
# Print deprecation notices to the Rails logger
|
||||||
config.active_support.deprecation = :log
|
config.active_support.deprecation = :log
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Qwaiter.event_host = "http://#{(Rails.env.development? or Rails.env.test?) ? 'localhost' : 'events.mozo.bar'}:9296/faye"
|
Qwaiter.event_host = "http://#{(Rails.env.development? or Rails.env.test?) ? ENV['MOZO_LOCAL_IP'] || 'localhost' : 'events.mozo.bar'}:9296/faye"
|
||||||
Qwaiter.broadcaster = Qwaiter::Broadcaster::Faye.new
|
Qwaiter.broadcaster = Qwaiter::Broadcaster::Faye.new
|
||||||
|
|
||||||
# use the connection from couchbase-structures/documents
|
# use the connection from couchbase-structures/documents
|
||||||
|
|||||||
Reference in New Issue
Block a user