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')
|
@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
|
||||||
|
|
Loading…
Reference in a new issue