summaryrefslogtreecommitdiffstats
path: root/apps/tasks/js
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2011-09-13 22:44:15 +0200
committerBart Visscher <bartv@thisnet.nl>2011-09-17 21:55:06 +0200
commit8826aa8056062d608db962ca2e1b55cf3e204c13 (patch)
tree4aebf75798f28c3ca19e7d4555b36d10e7407d91 /apps/tasks/js
parent78863696b7d2c443f742d23dd94acefe60157779 (diff)
downloadnextcloud-server-8826aa8056062d608db962ca2e1b55cf3e204c13.tar.gz
nextcloud-server-8826aa8056062d608db962ca2e1b55cf3e204c13.zip
Add basic fields to tasks app
Diffstat (limited to 'apps/tasks/js')
-rw-r--r--apps/tasks/js/tasks.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/tasks/js/tasks.js b/apps/tasks/js/tasks.js
index 528363f4237..e145389a959 100644
--- a/apps/tasks/js/tasks.js
+++ b/apps/tasks/js/tasks.js
@@ -82,6 +82,14 @@ $(document).ready(function(){
return false;
});
+ $('#tasks_edittaskform #percent_complete').live('change',function(event){
+ if ($(event.target).val() == 100){
+ $('#tasks_edittaskform #complete').show();
+ }else{
+ $('#tasks_edittaskform #complete').hide();
+ }
+ });
+
$('#tasks_edittaskform input[type="submit"]').live('click',function(){
$.post('ajax/edittask.php',$('#tasks_edittaskform').serialize(),function(jsondata){
if(jsondata.status == 'success'){
@@ -89,7 +97,7 @@ $(document).ready(function(){
$('#task_details').html(jsondata.data.page);
}
else{
- alert(jsondata.data.message);
+ alert(jsondata.data.errors);//TODO
}
}, 'json');
return false;