Removed debugging.
This commit is contained in:
parent
e7fab8d5c4
commit
ba12920a01
1 changed files with 9 additions and 9 deletions
|
@ -267,24 +267,24 @@ class App.ControllerTable extends App.Controller
|
||||||
else
|
else
|
||||||
@$("tbody > tr:nth-child(#{position})").after(newCurrentRows[position])
|
@$("tbody > tr:nth-child(#{position})").after(newCurrentRows[position])
|
||||||
@currentRows = newCurrentRows
|
@currentRows = newCurrentRows
|
||||||
console.log('fullRender.contentRemoved', removePositions, addPositions)
|
#console.log('fullRender.contentRemoved', removePositions, addPositions)
|
||||||
@renderPager(@el, true)
|
@renderPager(@el, true)
|
||||||
return ['fullRender.contentRemoved', removePositions, addPositions]
|
return ['fullRender.contentRemoved', removePositions, addPositions]
|
||||||
|
|
||||||
if newRows.length isnt @currentRows.length
|
if newRows.length isnt @currentRows.length
|
||||||
result = ['fullRender.lenghtChanged', @currentRows.length, newRows.length]
|
result = ['fullRender.lenghtChanged', @currentRows.length, newRows.length]
|
||||||
@renderTableFull(newRows)
|
@renderTableFull(newRows)
|
||||||
console.log('result', result)
|
#console.log('result', result)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
# compare rows
|
# compare rows
|
||||||
result = @_isSame(newRows, @currentRows)
|
result = @_isSame(newRows, @currentRows)
|
||||||
if result isnt true
|
if result isnt true
|
||||||
@renderTableFull(newRows)
|
@renderTableFull(newRows)
|
||||||
console.log('result', "fullRender.contentChanged|row(#{result})")
|
#console.log('result', "fullRender.contentChanged|row(#{result})")
|
||||||
return ['fullRender.contentChanged', result]
|
return ['fullRender.contentChanged', result]
|
||||||
|
|
||||||
console.log('result', 'noChanges')
|
#console.log('result', 'noChanges')
|
||||||
return ['noChanges']
|
return ['noChanges']
|
||||||
|
|
||||||
renderEmptyList: =>
|
renderEmptyList: =>
|
||||||
|
@ -293,7 +293,7 @@ class App.ControllerTable extends App.Controller
|
||||||
)
|
)
|
||||||
|
|
||||||
renderTableFull: (rows) =>
|
renderTableFull: (rows) =>
|
||||||
console.log('renderTableFull', @orderBy, @orderDirection, @objects)
|
#console.log('renderTableFull', @orderBy, @orderDirection, @objects)
|
||||||
@tableHeaders()
|
@tableHeaders()
|
||||||
@sortList()
|
@sortList()
|
||||||
bulkIds = @getBulkSelected()
|
bulkIds = @getBulkSelected()
|
||||||
|
@ -501,7 +501,7 @@ class App.ControllerTable extends App.Controller
|
||||||
|
|
||||||
#console.log('LLL', @lastOrderBy, @orderBy, @lastOrderDirection, @orderDirection, @overviewAttributes, @lastOverview)
|
#console.log('LLL', @lastOrderBy, @orderBy, @lastOrderDirection, @orderDirection, @overviewAttributes, @lastOverview)
|
||||||
if @headers && @lastOrderBy is orderBy && @lastOrderDirection is orderDirection && !@tableHeadersHasChanged()
|
if @headers && @lastOrderBy is orderBy && @lastOrderDirection is orderDirection && !@tableHeadersHasChanged()
|
||||||
console.log('tableHeaders: same overviewAttributes just return headers', @headers)
|
#console.log('tableHeaders: same overviewAttributes just return headers', @headers)
|
||||||
return ['headers are the same', @headers]
|
return ['headers are the same', @headers]
|
||||||
@lastOverview = @overviewAttributes
|
@lastOverview = @overviewAttributes
|
||||||
|
|
||||||
|
@ -582,7 +582,7 @@ class App.ControllerTable extends App.Controller
|
||||||
@columnsLength = @headers.length
|
@columnsLength = @headers.length
|
||||||
if @checkbox || @radio
|
if @checkbox || @radio
|
||||||
@columnsLength++
|
@columnsLength++
|
||||||
console.log('tableHeaders: new headers', @headers)
|
#console.log('tableHeaders: new headers', @headers)
|
||||||
['new headers', @headers]
|
['new headers', @headers]
|
||||||
|
|
||||||
setMaxPage: =>
|
setMaxPage: =>
|
||||||
|
@ -600,8 +600,8 @@ class App.ControllerTable extends App.Controller
|
||||||
orderBy = @customOrderBy || @orderBy
|
orderBy = @customOrderBy || @orderBy
|
||||||
orderDirection = @customOrderDirection || @orderDirection
|
orderDirection = @customOrderDirection || @orderDirection
|
||||||
|
|
||||||
console.log('order', @orderBy, @orderDirection)
|
#console.log('order', @orderBy, @orderDirection)
|
||||||
console.log('customOrder', @customOrderBy, @customOrderDirection)
|
#console.log('customOrder', @customOrderBy, @customOrderDirection)
|
||||||
|
|
||||||
return if _.isEmpty(orderBy) && _.isEmpty(@groupBy)
|
return if _.isEmpty(orderBy) && _.isEmpty(@groupBy)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue