mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-09 11:34:24 +08:00
Nicer negation
This commit is contained in:
@@ -49,7 +49,7 @@ angular.module("sideBySide.controllers", [])
|
||||
length = poems.getActive().length
|
||||
active = poem.meta.Active
|
||||
if (length > min or not active) and (length < max or active)
|
||||
poem.meta.Active = not poem.meta.Active
|
||||
poem.meta.Active = ! active
|
||||
route.update 'display', filter.getFilter()
|
||||
# TODO else notification
|
||||
|
||||
|
||||
Reference in New Issue
Block a user