Removed debug infos.
This commit is contained in:
parent
f83263061d
commit
8ef958efea
10 changed files with 7 additions and 27 deletions
|
@ -21,7 +21,6 @@ class App.Controller extends Spine.Controller
|
||||||
|
|
||||||
scrollTo: ( x = 0, y = 0, delay = 0 ) ->
|
scrollTo: ( x = 0, y = 0, delay = 0 ) ->
|
||||||
a = ->
|
a = ->
|
||||||
console.log('scollTo', x, y )
|
|
||||||
window.scrollTo( x, y )
|
window.scrollTo( x, y )
|
||||||
|
|
||||||
@delay( a, delay )
|
@delay( a, delay )
|
||||||
|
|
|
@ -630,7 +630,7 @@ class App.ControllerForm extends App.Controller
|
||||||
inputSelectData = param[ key ]
|
inputSelectData = param[ key ]
|
||||||
inputSelectObject[ name ] = {}
|
inputSelectObject[ name ] = {}
|
||||||
for x in [0..inputSelectData.length] by 2
|
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 ]
|
if inputSelectData[ x ]
|
||||||
inputSelectObject[ name ][ inputSelectData[x] ] = inputSelectData[ x + 1 ]
|
inputSelectObject[ name ][ inputSelectData[x] ] = inputSelectData[ x + 1 ]
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,6 @@ class Index extends App.Controller
|
||||||
@navigate '#/'
|
@navigate '#/'
|
||||||
|
|
||||||
error: (xhr, statusText, error) =>
|
error: (xhr, statusText, error) =>
|
||||||
console.log 'login:error'
|
|
||||||
|
|
||||||
# add notify
|
# add notify
|
||||||
App.Event.trigger 'notify:removeall'
|
App.Event.trigger 'notify:removeall'
|
||||||
|
|
|
@ -79,7 +79,6 @@ class App.Navigation extends App.Controller
|
||||||
term: @term
|
term: @term
|
||||||
processData: true,
|
processData: true,
|
||||||
success: (data, status, xhr) =>
|
success: (data, status, xhr) =>
|
||||||
console.log data
|
|
||||||
|
|
||||||
# load user collection
|
# load user collection
|
||||||
if data.users
|
if data.users
|
||||||
|
|
|
@ -111,7 +111,7 @@ class App.TextModuleUI extends App.Controller
|
||||||
# prevent default key action
|
# prevent default key action
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|
||||||
console.log 'CTRL+', ui.CaptureList
|
# console.log 'CTRL+', ui.CaptureList
|
||||||
ui.el.find('#text-module-search').val( ui.CaptureList )
|
ui.el.find('#text-module-search').val( ui.CaptureList )
|
||||||
ui.renderTable( ui.CaptureList )
|
ui.renderTable( ui.CaptureList )
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ class App.TextModuleUI extends App.Controller
|
||||||
inputElement.bind('keyup', (e) ->
|
inputElement.bind('keyup', (e) ->
|
||||||
if e.keyCode == 17
|
if e.keyCode == 17
|
||||||
ui.CaptureList = ''
|
ui.CaptureList = ''
|
||||||
console.log 'CTRL UP - pressed ', ui.CaptureList
|
# console.log 'CTRL UP - pressed ', ui.CaptureList
|
||||||
ui.Capture = false
|
ui.Capture = false
|
||||||
ui.el.find('#text-module-search').val( '' )
|
ui.el.find('#text-module-search').val( '' )
|
||||||
ui.renderTable()
|
ui.renderTable()
|
||||||
|
@ -262,7 +262,7 @@ class App.TextModuleUI extends App.Controller
|
||||||
try
|
try
|
||||||
key = eval (varString)
|
key = eval (varString)
|
||||||
catch error
|
catch error
|
||||||
console.log( "tag replacement: " + error )
|
# console.log( "tag replacement: " + error )
|
||||||
key = ''
|
key = ''
|
||||||
return key
|
return key
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
class App.Log
|
class App.Log
|
||||||
_instance = undefined
|
_instance = undefined
|
||||||
|
|
||||||
# @sub: (module) ->
|
|
||||||
# @module: (name) ->
|
|
||||||
|
|
||||||
@log: ( module, level, args... ) ->
|
@log: ( module, level, args... ) ->
|
||||||
if _instance == undefined
|
if _instance == undefined
|
||||||
_instance ?= new _Singleton
|
_instance ?= new _Singleton
|
||||||
|
@ -17,7 +14,6 @@ class App.Log
|
||||||
|
|
||||||
class _Singleton
|
class _Singleton
|
||||||
constructor: ->
|
constructor: ->
|
||||||
console.log 'NNNNNNNEEEWWW LOG!!!'
|
|
||||||
@config = {}
|
@config = {}
|
||||||
# Session: true
|
# Session: true
|
||||||
# ControllerForm: true
|
# ControllerForm: true
|
||||||
|
@ -30,5 +26,5 @@ class _Singleton
|
||||||
|
|
||||||
|
|
||||||
_log: ( module, level, args ) ->
|
_log: ( module, level, args ) ->
|
||||||
console.log "App.#{module}(#{level})", args
|
window.console.log "App.#{module}(#{level})", args
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,6 @@ class _Singleton extends Spine.Module
|
||||||
|
|
||||||
# load full array once
|
# load full array once
|
||||||
if _.isArray( params.data )
|
if _.isArray( params.data )
|
||||||
# console.log( 'load ARRAY', params.data)
|
|
||||||
App[ params.type ].refresh( params.data )
|
App[ params.type ].refresh( params.data )
|
||||||
|
|
||||||
# remember in store if not already requested from local storage
|
# remember in store if not already requested from local storage
|
||||||
|
@ -142,7 +141,6 @@ class _Singleton extends Spine.Module
|
||||||
# load data from object
|
# load data from object
|
||||||
# if _.isObject( params.data )
|
# if _.isObject( params.data )
|
||||||
for key, object of params.data
|
for key, object of params.data
|
||||||
# console.log( 'load OB', object)
|
|
||||||
App[ params.type ].refresh( object )
|
App[ params.type ].refresh( object )
|
||||||
|
|
||||||
# remember in store if not already requested from local storage
|
# remember in store if not already requested from local storage
|
||||||
|
@ -151,10 +149,8 @@ class _Singleton extends Spine.Module
|
||||||
|
|
||||||
find: ( type, id, callback, force ) ->
|
find: ( type, id, callback, force ) ->
|
||||||
|
|
||||||
# console.log( 'find', type, id, force )
|
|
||||||
# if App[type].exists( id ) && !callback
|
# if App[type].exists( id ) && !callback
|
||||||
if !force && App[type].exists( id )
|
if !force && App[type].exists( id )
|
||||||
# console.log( 'find exists', type, id )
|
|
||||||
data = App[type].find( id )
|
data = App[type].find( id )
|
||||||
if callback
|
if callback
|
||||||
callback( data )
|
callback( data )
|
||||||
|
@ -167,13 +163,11 @@ class _Singleton extends Spine.Module
|
||||||
|
|
||||||
# execute callback if record got loaded
|
# execute callback if record got loaded
|
||||||
App[type].one 'refresh', ->
|
App[type].one 'refresh', ->
|
||||||
console.log 'loaded..' + type + '..', id
|
|
||||||
|
|
||||||
data = App.Collection.find( type, id )
|
data = App.Collection.find( type, id )
|
||||||
callback( data )
|
callback( data )
|
||||||
|
|
||||||
# fetch object
|
# fetch object
|
||||||
console.log 'loading..' + type + '..', id
|
@log 'Collection', 'debug', 'loading..' + type + '..', id
|
||||||
App[type].fetch( id: id )
|
App[type].fetch( id: id )
|
||||||
return true
|
return true
|
||||||
return false
|
return false
|
||||||
|
|
|
@ -38,7 +38,6 @@ class _Singleton extends Spine.Module
|
||||||
.delegate '.translation', 'focus', (e) =>
|
.delegate '.translation', 'focus', (e) =>
|
||||||
$this = $(e.target)
|
$this = $(e.target)
|
||||||
$this.data 'before', $this.html()
|
$this.data 'before', $this.html()
|
||||||
# console.log('11111current', $this.html())
|
|
||||||
return $this
|
return $this
|
||||||
# .delegate '.translation', 'blur keyup paste', (e) =>
|
# .delegate '.translation', 'blur keyup paste', (e) =>
|
||||||
.delegate '.translation', 'blur', (e) =>
|
.delegate '.translation', 'blur', (e) =>
|
||||||
|
@ -55,7 +54,7 @@ class _Singleton extends Spine.Module
|
||||||
|
|
||||||
# update translation
|
# update translation
|
||||||
return if $this.data('before') is translation_new
|
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
|
$this.data 'before', translation_new
|
||||||
|
|
||||||
# update runtime translation map
|
# update runtime translation map
|
||||||
|
@ -101,9 +100,6 @@ class _Singleton extends Spine.Module
|
||||||
|
|
||||||
# load in collection if needed
|
# load in collection if needed
|
||||||
App.Translation.refresh( { id: object[0], source: object[1], target: object[2], locale: @locale } )
|
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... ) =>
|
translate_inline: ( string, args... ) =>
|
||||||
|
|
|
@ -63,7 +63,6 @@ class _Singleton extends App.Controller
|
||||||
if @ws.readyState is 0
|
if @ws.readyState is 0
|
||||||
@queue.push data
|
@queue.push data
|
||||||
else
|
else
|
||||||
# console.log( 'ws:send', data )
|
|
||||||
string = JSON.stringify( data )
|
string = JSON.stringify( data )
|
||||||
@ws.send(string)
|
@ws.send(string)
|
||||||
|
|
||||||
|
@ -229,7 +228,6 @@ class _Singleton extends App.Controller
|
||||||
|
|
||||||
# stop init request if new one is started
|
# stop init request if new one is started
|
||||||
if @_ajaxInitWorking
|
if @_ajaxInitWorking
|
||||||
console.log '@_ajaxInitWorking', @_ajaxInitWorking
|
|
||||||
@_ajaxInitWorking.abort()
|
@_ajaxInitWorking.abort()
|
||||||
|
|
||||||
# call init request
|
# call init request
|
||||||
|
|
|
@ -53,7 +53,6 @@ class App.Model extends Spine.Model
|
||||||
|
|
||||||
# get confirm password
|
# get confirm password
|
||||||
if data['params'][attribute.name] isnt data['params']["#{attribute.name}_confirm"]
|
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] = 'didn\'t match'
|
||||||
errors["#{attribute.name}_confirm"] = ''
|
errors["#{attribute.name}_confirm"] = ''
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue