Code cleanup.

This commit is contained in:
Martin Edenhofer 2016-06-02 21:00:12 +02:00
parent 556dbb7bb8
commit ba611c377e

View file

@ -326,10 +326,8 @@ class TimeRangePicker extends App.Controller
@el.find('.js-timeRange[data-type="' + @ui.params.timeRange + '"]').addClass('active')
select: (e) =>
console.log('TS click')
e.preventDefault()
@ui.params.timeRange = $(e.target).data('type')
console.log 'SLOT', @ui.params.timeRange
App.Event.trigger('ui:report:rerender')
@ -488,7 +486,6 @@ class Sidebar extends App.Controller
metrics = @config.metric
profiles = App.ReportProfile.all()
console.log('Si', @params)
@html App.view('report/sidebar')(
metrics: metrics
params: @params
@ -505,7 +502,6 @@ class Sidebar extends App.Controller
selectProfile: (e) =>
profile_id = $(e.target).val()
console.log('llll', profile_id)
for key, value of @params.profileSelected
delete @params.profileSelected[key]
@params.profileSelected[profile_id] = true