mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Remove prototype code.
This commit is contained in:
parent
80eeaaaaea
commit
bd6dcc007b
2 changed files with 1 additions and 5 deletions
|
@ -10,7 +10,6 @@ aside.change-list(
|
|||
load-disabled="history.loading || history.atEnd"
|
||||
load-initialize="ui.view == 'history'"
|
||||
is-loading="history.loading"
|
||||
show-only-labelled="listConfig.showOnlyLabelled"
|
||||
on-entry-select="handleEntrySelect(selectedEntry)"
|
||||
on-label-delete="handleLabelDelete(label)"
|
||||
)
|
||||
|
@ -115,7 +114,7 @@ script(type="text/ng-template", id="historyEntriesListTpl")
|
|||
)
|
||||
.infinite-scroll-inner
|
||||
history-entry(
|
||||
ng-repeat="entry in $ctrl.entries | filter:$ctrl.shouldShowEntry"
|
||||
ng-repeat="entry in $ctrl.entries"
|
||||
entry="entry"
|
||||
current-user="$ctrl.currentUser"
|
||||
users="$ctrl.users"
|
||||
|
|
|
@ -3,8 +3,6 @@ define [
|
|||
], (App) ->
|
||||
historyEntriesListController = ($scope, $element, $attrs) ->
|
||||
ctrl = @
|
||||
ctrl.shouldShowEntry = (entry) ->
|
||||
!(ctrl.showOnlyLabelled and entry.labels.length == 0)
|
||||
return
|
||||
|
||||
App.component "historyEntriesList", {
|
||||
|
@ -18,7 +16,6 @@ define [
|
|||
currentUser: "<"
|
||||
onEntrySelect: "&"
|
||||
onLabelDelete: "&"
|
||||
showOnlyLabelled: "<"
|
||||
controller: historyEntriesListController
|
||||
templateUrl: "historyEntriesListTpl"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue