Last problems with angularjs in Issue Detail page

Issue #100 resolved
Former user created an issue

From an email I sent to Ski:

1) I think you setted "response_to" field as required also for the main comment form... in fact if I try to add a new comment (not a reply), the console logs a warning that comes back from the server... That field must be also empty...

2) For the reply comment form I added the "required" attribute and I check if the form is $valid during the "comment" button click (through ng-disabled). But this check doesn't work here and the button is always disabled :(

3) In the comment reply form I've 2 fields: the textarea and a hidden input.... The hidden input contains response_to_id. When I write something in the textarea, automatically the content of the hidden input is cleared and I don't know why :\ Because it's cleared, the ajax call return an error

4) In the reply form callback (look at the angularjs directive), when all things went well and the new comment is added, I ask to get the new comments list to refresh the UI, but now how can I update a scope of another controller? I tried to import the external controller scope inside the directive using something like this:

$controller('IssueDetails', {$scope:$scope})

but it doesn't work :|

Comments (1)

  1. Log in to comment