From 8ef958efeadb2aa7c612a58d5fa6c05603c13e8d Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 27 Nov 2012 03:40:54 +0100 Subject: [PATCH] Removed debug infos. --- .../app/controllers/_application_controller.js.coffee | 1 - .../controllers/_application_controller_form.js.coffee | 2 +- app/assets/javascripts/app/controllers/login.js.coffee | 1 - .../javascripts/app/controllers/navigation.js.coffee | 1 - .../app/controllers/text_module_widget.js.coffee | 6 +++--- app/assets/javascripts/app/lib/app_init/log.js.coffee | 6 +----- .../javascripts/app/lib/app_post/collection.js.coffee | 8 +------- app/assets/javascripts/app/lib/app_post/i18n.js.coffee | 6 +----- .../javascripts/app/lib/app_post/websocket.js.coffee | 2 -- .../javascripts/app/models/application_model.js.coffee | 1 - 10 files changed, 7 insertions(+), 27 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller.js.coffee b/app/assets/javascripts/app/controllers/_application_controller.js.coffee index 4a064c006..748b38a8b 100644 --- a/app/assets/javascripts/app/controllers/_application_controller.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller.js.coffee @@ -21,7 +21,6 @@ class App.Controller extends Spine.Controller scrollTo: ( x = 0, y = 0, delay = 0 ) -> a = -> - console.log('scollTo', x, y ) window.scrollTo( x, y ) @delay( a, delay ) diff --git a/app/assets/javascripts/app/controllers/_application_controller_form.js.coffee b/app/assets/javascripts/app/controllers/_application_controller_form.js.coffee index 2af9cdc45..6756fe7c9 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_form.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_form.js.coffee @@ -630,7 +630,7 @@ class App.ControllerForm extends App.Controller inputSelectData = param[ key ] inputSelectObject[ name ] = {} for x in [0..inputSelectData.length] by 2 - console.log 'for by 111', x, inputSelectData, inputSelectData[x], inputSelectData[ x + 1 ] +# console.log 'for by 111', x, inputSelectData, inputSelectData[x], inputSelectData[ x + 1 ] if inputSelectData[ x ] inputSelectObject[ name ][ inputSelectData[x] ] = inputSelectData[ x + 1 ] diff --git a/app/assets/javascripts/app/controllers/login.js.coffee b/app/assets/javascripts/app/controllers/login.js.coffee index ca1485270..d8fe0bfce 100644 --- a/app/assets/javascripts/app/controllers/login.js.coffee +++ b/app/assets/javascripts/app/controllers/login.js.coffee @@ -90,7 +90,6 @@ class Index extends App.Controller @navigate '#/' error: (xhr, statusText, error) => - console.log 'login:error' # add notify App.Event.trigger 'notify:removeall' diff --git a/app/assets/javascripts/app/controllers/navigation.js.coffee b/app/assets/javascripts/app/controllers/navigation.js.coffee index 71016b740..b9dd72aff 100644 --- a/app/assets/javascripts/app/controllers/navigation.js.coffee +++ b/app/assets/javascripts/app/controllers/navigation.js.coffee @@ -79,7 +79,6 @@ class App.Navigation extends App.Controller term: @term processData: true, success: (data, status, xhr) => - console.log data # load user collection if data.users diff --git a/app/assets/javascripts/app/controllers/text_module_widget.js.coffee b/app/assets/javascripts/app/controllers/text_module_widget.js.coffee index 678cbc06a..55e334f91 100644 --- a/app/assets/javascripts/app/controllers/text_module_widget.js.coffee +++ b/app/assets/javascripts/app/controllers/text_module_widget.js.coffee @@ -111,7 +111,7 @@ class App.TextModuleUI extends App.Controller # prevent default key action e.preventDefault() - console.log 'CTRL+', ui.CaptureList +# console.log 'CTRL+', ui.CaptureList ui.el.find('#text-module-search').val( ui.CaptureList ) ui.renderTable( ui.CaptureList ) @@ -125,7 +125,7 @@ class App.TextModuleUI extends App.Controller inputElement.bind('keyup', (e) -> if e.keyCode == 17 ui.CaptureList = '' - console.log 'CTRL UP - pressed ', ui.CaptureList +# console.log 'CTRL UP - pressed ', ui.CaptureList ui.Capture = false ui.el.find('#text-module-search').val( '' ) ui.renderTable() @@ -262,7 +262,7 @@ class App.TextModuleUI extends App.Controller try key = eval (varString) catch error - console.log( "tag replacement: " + error ) +# console.log( "tag replacement: " + error ) key = '' return key ) diff --git a/app/assets/javascripts/app/lib/app_init/log.js.coffee b/app/assets/javascripts/app/lib/app_init/log.js.coffee index 9a9b767d8..e129dfeef 100644 --- a/app/assets/javascripts/app/lib/app_init/log.js.coffee +++ b/app/assets/javascripts/app/lib/app_init/log.js.coffee @@ -1,9 +1,6 @@ class App.Log _instance = undefined -# @sub: (module) -> -# @module: (name) -> - @log: ( module, level, args... ) -> if _instance == undefined _instance ?= new _Singleton @@ -17,7 +14,6 @@ class App.Log class _Singleton constructor: -> - console.log 'NNNNNNNEEEWWW LOG!!!' @config = {} # Session: true # ControllerForm: true @@ -30,5 +26,5 @@ class _Singleton _log: ( module, level, args ) -> - console.log "App.#{module}(#{level})", args + window.console.log "App.#{module}(#{level})", args diff --git a/app/assets/javascripts/app/lib/app_post/collection.js.coffee b/app/assets/javascripts/app/lib/app_post/collection.js.coffee index 37d638d47..f0dfd0093 100644 --- a/app/assets/javascripts/app/lib/app_post/collection.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/collection.js.coffee @@ -130,7 +130,6 @@ class _Singleton extends Spine.Module # load full array once if _.isArray( params.data ) -# console.log( 'load ARRAY', params.data) App[ params.type ].refresh( params.data ) # remember in store if not already requested from local storage @@ -142,7 +141,6 @@ class _Singleton extends Spine.Module # load data from object # if _.isObject( params.data ) for key, object of params.data -# console.log( 'load OB', object) App[ params.type ].refresh( object ) # remember in store if not already requested from local storage @@ -151,10 +149,8 @@ class _Singleton extends Spine.Module find: ( type, id, callback, force ) -> -# console.log( 'find', type, id, force ) # if App[type].exists( id ) && !callback if !force && App[type].exists( id ) -# console.log( 'find exists', type, id ) data = App[type].find( id ) if callback callback( data ) @@ -167,13 +163,11 @@ class _Singleton extends Spine.Module # execute callback if record got loaded App[type].one 'refresh', -> - console.log 'loaded..' + type + '..', id - data = App.Collection.find( type, id ) callback( data ) # fetch object - console.log 'loading..' + type + '..', id + @log 'Collection', 'debug', 'loading..' + type + '..', id App[type].fetch( id: id ) return true return false diff --git a/app/assets/javascripts/app/lib/app_post/i18n.js.coffee b/app/assets/javascripts/app/lib/app_post/i18n.js.coffee index dc5eee470..6216c85cd 100644 --- a/app/assets/javascripts/app/lib/app_post/i18n.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/i18n.js.coffee @@ -38,7 +38,6 @@ class _Singleton extends Spine.Module .delegate '.translation', 'focus', (e) => $this = $(e.target) $this.data 'before', $this.html() -# console.log('11111current', $this.html()) return $this # .delegate '.translation', 'blur keyup paste', (e) => .delegate '.translation', 'blur', (e) => @@ -55,7 +54,7 @@ class _Singleton extends Spine.Module # update translation return if $this.data('before') is translation_new - console.log 'Translation Update', translation_new, $this.data 'before' + @log 'i18n', 'debug', 'translate Update', translation_new, $this.data, 'before' $this.data 'before', translation_new # update runtime translation map @@ -101,9 +100,6 @@ class _Singleton extends Spine.Module # load in collection if needed App.Translation.refresh( { id: object[0], source: object[1], target: object[2], locale: @locale } ) - - error: (xhr, statusText, error) => - console.log 'error', error, statusText, xhr.statusCode ) translate_inline: ( string, args... ) => diff --git a/app/assets/javascripts/app/lib/app_post/websocket.js.coffee b/app/assets/javascripts/app/lib/app_post/websocket.js.coffee index b3a7da831..5522590f6 100644 --- a/app/assets/javascripts/app/lib/app_post/websocket.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/websocket.js.coffee @@ -63,7 +63,6 @@ class _Singleton extends App.Controller if @ws.readyState is 0 @queue.push data else -# console.log( 'ws:send', data ) string = JSON.stringify( data ) @ws.send(string) @@ -229,7 +228,6 @@ class _Singleton extends App.Controller # stop init request if new one is started if @_ajaxInitWorking - console.log '@_ajaxInitWorking', @_ajaxInitWorking @_ajaxInitWorking.abort() # call init request diff --git a/app/assets/javascripts/app/models/application_model.js.coffee b/app/assets/javascripts/app/models/application_model.js.coffee index f91174c57..6c2f19081 100644 --- a/app/assets/javascripts/app/models/application_model.js.coffee +++ b/app/assets/javascripts/app/models/application_model.js.coffee @@ -53,7 +53,6 @@ class App.Model extends Spine.Model # get confirm password if data['params'][attribute.name] isnt data['params']["#{attribute.name}_confirm"] - console.log 'aaa', data['params'][attribute.name], data['params']["#{attribute.name}_confirm"], attribute[null] errors[attribute.name] = 'didn\'t match' errors["#{attribute.name}_confirm"] = ''