rewrite2 fix shop, fix checkboxes, delete tasks

This commit is contained in:
Tyler Renelle
2013-08-25 18:20:07 -04:00
parent fefca2c372
commit 8c3e50372e
6 changed files with 19 additions and 18 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
//@import "nib/vendor";
@import "nib/vendor"
// Vendor Includes - include first so we can override
@import "../../../public/vendor/datepicker/css/datepicker.css"
@@ -164,5 +164,5 @@ hr
background-color #dfe9ea
padding 1px 3px 1px 3px
.nav li > a
cursor: pointer
a
cursor: pointer
@@ -33,10 +33,3 @@ habitrpg.controller "TaskDetailsCtrl", ($scope, $rootScope, $location, User) ->
$scope.originalTask = null
$scope.editedTask = null
$scope.editing = false
$scope.remove = (task) ->
confirmed = window.confirm("Delete this task?")
return if confirmed isnt true
tasks = User.user[task.type + "s"]
User.log {op: "delTask", data: task}
delete tasks.splice(tasks.indexOf(task), 1)
+7
View File
@@ -77,6 +77,13 @@ habitrpg.controller "TasksCtrl", ($scope, $rootScope, $location, filterFilter, U
counter = 0
$scope.remove = (task) ->
if window.confirm("Delete this task?") is true
tasks = User.user[task.type + "s"]
User.log {op: "delTask", data: task}
tasks.splice(tasks.indexOf(task), 1)
###
------------------------
Items