{"action":"created","issue":{"url":"https://api.github.com/repos/terminal42/contao-conditionalformfields/issues/8","labels_url":"https://api.github.com/repos/terminal42/contao-conditionalformfields/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/terminal42/contao-conditionalformfields/issues/8/comments","events_url":"https://api.github.com/repos/terminal42/contao-conditionalformfields/issues/8/events","html_url":"https://github.com/terminal42/contao-conditionalformfields/issues/8","id":89239300,"number":8,"title":"Bug: Pflichtfeld-Sternchen fehlt bei Einblendung nach negativer Prüfung ","user":{"login":"xantippe","id":1045318,"avatar_url":"https://avatars.githubusercontent.com/u/1045318?v=3","gravatar_id":"","url":"https://api.github.com/users/xantippe","html_url":"https://github.com/xantippe","followers_url":"https://api.github.com/users/xantippe/followers","following_url":"https://api.github.com/users/xantippe/following{/other_user}","gists_url":"https://api.github.com/users/xantippe/gists{/gist_id}","starred_url":"https://api.github.com/users/xantippe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xantippe/subscriptions","organizations_url":"https://api.github.com/users/xantippe/orgs","repos_url":"https://api.github.com/users/xantippe/repos","events_url":"https://api.github.com/users/xantippe/events{/privacy}","received_events_url":"https://api.github.com/users/xantippe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-18T09:04:29Z","updated_at":"2015-06-18T13:10:26Z","closed_at":null,"body":"Hallo,\r\n\r\nfolgender Aufbau:\r\n* 1. Ebene: Checkbox-Menü als Pflichtfeld\r\n* 2. Ebene: weitere Pflichtfelder\r\n* 2  Ebene wird eingeblendet, wenn Checkbox 1 geklickt\r\n\r\n* ruft man das Formular auf und klickt auf Checkbox 1, ist das Pflichtfeldsternchen zu sehen\r\n* ruft man das Formular auf und klickt auf Checkbox, kommt Fehlermeldung wg. Pflichtfeld => wird nun Checkbox 1 angeklickt, ist in Ebene 2 kein \"Sternchen\" für die Pflichtfelder zu sehen (wird aber geprüft)\r\n\r\n... besser zu sehen anhand der Screenshots:\r\n\r\n![zwischenablage14](https://cloud.githubusercontent.com/assets/1045318/8227704/ba385b48-15a9-11e5-9182-552ee035dce3.jpg)\r\n\r\n![zwischenablage15](https://cloud.githubusercontent.com/assets/1045318/8227709/c021d32c-15a9-11e5-94c9-58a4a7a48a80.jpg)\r\n\r\n![zwischenablage16](https://cloud.githubusercontent.com/assets/1045318/8227713/c5a21410-15a9-11e5-9c81-be53b8a91420.jpg)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/terminal42/contao-conditionalformfields/issues/comments/113150488","html_url":"https://github.com/terminal42/contao-conditionalformfields/issues/8#issuecomment-113150488","issue_url":"https://api.github.com/repos/terminal42/contao-conditionalformfields/issues/8","id":113150488,"user":{"login":"xantippe","id":1045318,"avatar_url":"https://avatars.githubusercontent.com/u/1045318?v=3","gravatar_id":"","url":"https://api.github.com/users/xantippe","html_url":"https://github.com/xantippe","followers_url":"https://api.github.com/users/xantippe/followers","following_url":"https://api.github.com/users/xantippe/following{/other_user}","gists_url":"https://api.github.com/users/xantippe/gists{/gist_id}","starred_url":"https://api.github.com/users/xantippe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xantippe/subscriptions","organizations_url":"https://api.github.com/users/xantippe/orgs","repos_url":"https://api.github.com/users/xantippe/repos","events_url":"https://api.github.com/users/xantippe/events{/privacy}","received_events_url":"https://api.github.com/users/xantippe/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T13:10:26Z","updated_at":"2015-06-18T13:10:26Z","body":"Ich glaube, dass Problem ist Contao, welches die Pflichtfeldsternchen entfernt...\r\n\r\nals ersten Workaround:\r\n\r\n```\r\n        showFieldset: function(id) {\r\n            this.fieldsets[id].show();\r\n            \r\n            this.fieldsets[id].children('fieldset.mandatory').each(function() {\r\n          \t  \tif($(this).children('legend').children('span.mandatory').length < 1) {\r\n          \t  \t\t$(this).children('legend').append('<span class=\"mandatory\">*</span>');\r\n          \t  \t}    \r\n            });\r\n\r\n            $(this.fieldsetFields[id]).each(function() {\r\n            \t\tvar label = $(\"label[for='\"+$(this).attr(\"id\")+\"']\");\r\n            \t  if(label.hasClass('mandatory')) {\r\n            \t  \tif(label.children('span.mandatory').length < 1) {\r\n            \t  \t\tlabel.append('<span class=\"mandatory\">*</span>');\r\n            \t  \t}\r\n            \t  }\r\n                $(this).attr('disabled', false);         \r\n            });\r\n        },\r\n```"}}