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