From 36cdf561d94d5fd0bf436e7d92455c985103b5cf Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 6 Apr 2016 17:07:11 +0200 Subject: [PATCH] Removed not needed console.log entries. --- .../javascripts/app/controllers/_profile/avatar.coffee | 1 - app/assets/javascripts/app/controllers/layout_ref.coffee | 4 ---- .../javascripts/app/controllers/ticket_zoom.coffee | 2 -- .../app/controllers/widget/maintenance.coffee | 1 - .../app/controllers/widget/switch_back_to_user.coffee | 1 - .../javascripts/app/lib/app_post/business_hours.coffee | 1 - .../javascripts/app/lib/app_post/task_manager.coffee | 9 +++------ app/assets/javascripts/app/lib/app_post/utils.coffee | 1 - .../javascripts/app/models/_application_model.coffee | 2 -- 9 files changed, 3 insertions(+), 19 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_profile/avatar.coffee b/app/assets/javascripts/app/controllers/_profile/avatar.coffee index 2bef5772f..e03340354 100644 --- a/app/assets/javascripts/app/controllers/_profile/avatar.coffee +++ b/app/assets/javascripts/app/controllers/_profile/avatar.coffee @@ -406,7 +406,6 @@ class Camera extends App.ControllerModal onSubmit: => # send picture to the callback - console.log @cache.get(0).toDataURL() window.file = @cache.get(0).toDataURL() @callback @cache.get(0).toDataURL() @close() diff --git a/app/assets/javascripts/app/controllers/layout_ref.coffee b/app/assets/javascripts/app/controllers/layout_ref.coffee index d7ba9b5f8..7b7cd8435 100644 --- a/app/assets/javascripts/app/controllers/layout_ref.coffee +++ b/app/assets/javascripts/app/controllers/layout_ref.coffee @@ -427,7 +427,6 @@ class ModalForm extends App.ControllerModal onSubmit: (e) -> e.preventDefault() params = App.ControllerForm.params( $(e.target).closest('form') ) - console.log('params', params) App.Config.set( 'layout_ref/modal_form', ModalForm, 'Routes' ) @@ -545,7 +544,6 @@ class App.ControllerWizard extends App.ControllerContent navigate: (e) => target = $(e.currentTarget).attr('data-target') targetSlide = @$("[data-slide=#{ target }]") - console.log(e, target, targetSlide) if targetSlide @goToSlide targetSlide @@ -683,13 +681,11 @@ class RichText extends App.ControllerContent return @$('.js-textarea').on('keyup', (e) => - console.log('KU') textarea = @$('.js-textarea') App.Utils.htmlCleanup(textarea) ) @$('.js-textarea').on('paste', (e) => - console.log('paste') #console.log('PPP', e, e.originalEvent.clipboardData) execute = => diff --git a/app/assets/javascripts/app/controllers/ticket_zoom.coffee b/app/assets/javascripts/app/controllers/ticket_zoom.coffee index 06fafbb9d..19ea0a99d 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom.coffee @@ -179,7 +179,6 @@ class App.TicketZoom extends App.Controller statusText = xhr.statusText status = xhr.status detail = xhr.responseText - #console.log('error', status, statusText) # ignore if request is aborted if statusText is 'abort' @@ -476,7 +475,6 @@ class App.TicketZoom extends App.Controller params = {} params.ticket = @formParam(ticketForm) params.article = @formParam(articleForm) - #console.log('markFormDiff', diff, params) # clear all changes if _.isEmpty(diff.ticket) && _.isEmpty(diff.article) diff --git a/app/assets/javascripts/app/controllers/widget/maintenance.coffee b/app/assets/javascripts/app/controllers/widget/maintenance.coffee index eea18cf04..c9ffbd97f 100644 --- a/app/assets/javascripts/app/controllers/widget/maintenance.coffee +++ b/app/assets/javascripts/app/controllers/widget/maintenance.coffee @@ -6,7 +6,6 @@ class Widget extends App.Controller App.Event.bind( 'session:maintenance' (data) => - console.log('session:maintenance', data) @showMessage(data) 'maintenance' ) diff --git a/app/assets/javascripts/app/controllers/widget/switch_back_to_user.coffee b/app/assets/javascripts/app/controllers/widget/switch_back_to_user.coffee index 35bdd3f66..9f5e3c526 100644 --- a/app/assets/javascripts/app/controllers/widget/switch_back_to_user.coffee +++ b/app/assets/javascripts/app/controllers/widget/switch_back_to_user.coffee @@ -25,7 +25,6 @@ class Widget extends App.ControllerWidgetOnDemand # show switch back widget @html App.view('widget/switch_back_to_user')() - console.log('@el', @element()) @element().on('click', '.js-close', (e) => @switchBack(e) ) diff --git a/app/assets/javascripts/app/lib/app_post/business_hours.coffee b/app/assets/javascripts/app/lib/app_post/business_hours.coffee index be166af70..c84609645 100644 --- a/app/assets/javascripts/app/lib/app_post/business_hours.coffee +++ b/app/assets/javascripts/app/lib/app_post/business_hours.coffee @@ -58,7 +58,6 @@ class App.BusinessHours extends Spine.Controller slot = input.attr('data-slot') i = input.attr('data-i') @options.hours[day].timeframes[slot][i] = event.time.hoursAndMinutes - console.log event.time.hoursAndMinutes @el.toggleClass 'is-invalid', !@validate() diff --git a/app/assets/javascripts/app/lib/app_post/task_manager.coffee b/app/assets/javascripts/app/lib/app_post/task_manager.coffee index e09c547e7..ab64c026b 100644 --- a/app/assets/javascripts/app/lib/app_post/task_manager.coffee +++ b/app/assets/javascripts/app/lib/app_post/task_manager.coffee @@ -156,7 +156,6 @@ class _taskManagerSingleton extends App.Controller # in case an init execute arrives later but is aleady executed, ignore it if params.init && @workers[params.key] - #console.log('IGNORE LATER INIT', params) return # if we have init task startups, let the controller know this @@ -179,7 +178,6 @@ class _taskManagerSingleton extends App.Controller # create new online task if not exists and if not persistent if !task && !@workers[params.key] && !params.persistent - #console.log 'debug', 'add, create new taskbar in backend' task = new App.Taskbar task.load( key: params.key @@ -238,8 +236,7 @@ class _taskManagerSingleton extends App.Controller @startController(params) startController: (params) => - - #console.log 'debug', 'controller start try...', params + @log 'debug', 'controller start try...', params # create clean params params_app = _.clone(params.params) @@ -518,7 +515,7 @@ class _taskManagerSingleton extends App.Controller persistent: true init: true ) - task_count * 350 + task_count * 450 undefined 'task' ) @@ -537,7 +534,7 @@ class _taskManagerSingleton extends App.Controller persistent: false init: true ) - task_count * 350 + task_count * 450 undefined 'task' ) diff --git a/app/assets/javascripts/app/lib/app_post/utils.coffee b/app/assets/javascripts/app/lib/app_post/utils.coffee index 87cf4624f..e302073bc 100644 --- a/app/assets/javascripts/app/lib/app_post/utils.coffee +++ b/app/assets/javascripts/app/lib/app_post/utils.coffee @@ -636,7 +636,6 @@ class App.Utils # changes to complex, whole rerender if _.contains(a, b[position]) - console.log('aaa too complex', a, b[position]) return false # insert new item and try next diff --git a/app/assets/javascripts/app/models/_application_model.coffee b/app/assets/javascripts/app/models/_application_model.coffee index eff251998..777a1b456 100644 --- a/app/assets/javascripts/app/models/_application_model.coffee +++ b/app/assets/javascripts/app/models/_application_model.coffee @@ -208,7 +208,6 @@ class App.Model extends Spine.Model for attribute in attributes attributesNew[ attribute.name ] = attribute - #console.log(attributesNew) attributesNew validate: (params = {}) -> @@ -313,7 +312,6 @@ class App.Model extends Spine.Model (items, options) => if !_.isArray(items) items = [items] - console.log('refresh', items, options) App.Log.debug('Model', "local collection refresh #{@className}", items) for key, callback of @SUBSCRIPTION_COLLECTION callback(items, 'refresh')