diff --git a/src/app/browser.coffee b/src/app/browser.coffee
index 4f7b4168bf..351573cf43 100644
--- a/src/app/browser.coffee
+++ b/src/app/browser.coffee
@@ -83,13 +83,8 @@ loadJavaScripts = (model) ->
###
setupSortable = (model) ->
unless (model.get('_view.mobileDevice') == true) #don't do sortable on mobile
- # Make the lists draggable using jQuery UI
- # Note, have to setup helper function here and call it for each type later
- # due to variable binding of "type"
- setupSortable = (type) ->
- for key, value of type
- parsedType = value
- $("ul.#{parsedType}s").sortable
+ _.each ['habit', 'daily', 'todo', 'reward'], (type) ->
+ $("ul.#{type}s").sortable
dropOnEmpty: false
cursor: "move"
items: "li"
@@ -106,7 +101,6 @@ setupSortable = (model) ->
# Also, note that refList index arguments can either be an index
# or the item's id property
model.at("_#{type}List").pass(ignore: domId).move {id}, to
- _.each ['habit', 'daily', 'todo', 'reward'], (type) -> setupSortable(type)
setupTooltips = (model) ->
$('[rel=tooltip]').tooltip()
@@ -227,4 +221,4 @@ setupGrowlNotifications = (model) ->
if captures is 1 and args is 0
statsNotification ' You died!', 'death'
else
- statsNotification ' Level Up!', 'lvl'
\ No newline at end of file
+ statsNotification ' Level Up!', 'lvl'
diff --git a/views/app/alerts.html b/views/app/alerts.html
index c76e61c010..bf10bd2bf0 100644
--- a/views/app/alerts.html
+++ b/views/app/alerts.html
@@ -1,6 +1,6 @@
{#if _flash.error}
-
+
{#each _flash.error as :error}- {:error}
{/}
{/}
\ No newline at end of file