Revision tool

This PR enables the replacement of our revision tool. It's now possible to

1. start the feedback from the drawing dialog
2. create a drawing from the feedback dialog

The user can then choose to attach the drawing as kml in the feedback dialg.

Please test here: [Test Link](http://mf-geoadmin3.dev.bgdi.ch/gjn_toggle_drawfeedback)

@p1d1d1 Maybe we can do a review session with Topo tomorrow, or next week.

@davidoesch Not sure about the texts of the buttons here and the UI in general (are buttons the right tool?)

@all Feedback welcome

OK from my side... Let's cross fingers it works on all browsers and other mobile than the 4s....

On Wed, Nov 19, 2014 at 5:10 PM, oterral <notifications@github.com> wrote:

>> -        $scope.feedbackSuccessModalShown = false;
>> -        $scope.feedbackErrorModalShown = false;
>> -
>> -        // Hide/show success and error modals when feedback response received.
>> -        $scope.$watch('response', function(newVal, oldVal) {
>> -          if (newVal) {
>> -            var success = $scope.response == 'success';
>> -            $scope.feedbackSuccessModalShown = success;
>> -            $scope.feedbackErrorModalShown = !success;
>> -            $scope.feedbackModalShown = false;
>> +          feedbackUrl: gaGlobalOptions.apiUrl + '/feedback',
>> +          activateDrawingDialog: function() {
>> +            $scope.globals.isDrawActive = true;
>> +            $timeout(function() {
>> +              $('#draw-popup h4').click();
>> +            }, 0);
> OK I understand why my `if($scope.globals.isDrawActive)` doesn't work. The click event  must be stopped in `activateDraw` function otherwise `bringUpToFront` function is called on the feedback popup.
> When the click event is stopped do :  
> ```
>  if ($scope.globals.isDrawActive) {
>      $timeout(function() {  
>         $('#draw-popup h4').click();
>      }, 0, false); // The false options is neede to avoid a useless digest cycle because cick() already triggers one
>  } else {
>      $scope.globals.isDrawActive = true;
>  }
> ```
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/geoadmin/mf-geoadmin3/pull/1869/files#r20585567