Code cleanup.
This commit is contained in:
parent
556dbb7bb8
commit
ba611c377e
1 changed files with 11 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue