accurator/commit
Minor fixes.
author | Chris Dijkshoorn |
---|---|
Sun Apr 3 21:45:43 2016 +0200 | |
committer | Chris Dijkshoorn |
Sun Apr 3 21:45:43 2016 +0200 | |
commit | f704b6b665d4423691f5024ecff5d450c64da25a |
tree | 509ea40cdf0af08b749fe24085d4671f53f80d46 |
parent | b845b62f807a5c1390fa2471d2f5ced3bf10feb2 |
Diff style: patch stat
diff --git a/web/js/components/form.js b/web/js/components/form.js index 4f58525..f0b9fc0 100644 --- a/web/js/components/form.js +++ b/web/js/components/form.js @@ -274,7 +274,7 @@ Form.prototype.processFormFields = function() { info[id] = value; // add single value to info } } - console.log("info result ", info); + return save_user_info(info); } @@ -282,7 +282,7 @@ Form.prototype.addFormEvents = function(labels) { var _form = this; $(this.node).find("#formDivsocialNetwork #formChknone").click(function() { - if(!labels.socialFieldAdded) { + if(!_form.socialFieldAdded) { $("#formDivSocialNetwork").after( $.el.div({'class':'form-group'}, $.el.label({'for':'addSocialSite', @@ -298,8 +298,7 @@ Form.prototype.addFormEvents = function(labels) { }); $(this.node).find("#formDivsocialNetwork #formChktwitter").click(function() { - console.log("click!"); - if(!labels.twitterFieldAdded) { + if(!_form.twitterFieldAdded) { $("#formDivsocialNetwork").after( $.el.div({'class':'form-group'}, $.el.label({'for':'addTwitterId', @@ -315,7 +314,7 @@ Form.prototype.addFormEvents = function(labels) { }); $(this.node).find("#formDivtaggingSites #formChkother").click(function() { - if(!labels.tagsiteFieldAdded) { + if(!_form.tagsiteFieldAdded) { $("#formDivTaggingSite").after( $.el.div({'class':'form-group'}, $.el.label({'for':'addTagSite', diff --git a/web/js/item.js b/web/js/item.js index f5c65c4..d23e20f 100644 --- a/web/js/item.js +++ b/web/js/item.js @@ -132,7 +132,7 @@ function events(user, locale, labels) { }); } - if(annotations.length === 25) { + if(annotations.length === 10) { var formInternet = new Form( "formInternet", ["socialNetwork", "taggingSites", "taggingExperience", "mail", "mailCheck"],