#1157 small but important fixes
Merged 7 years ago by pingou. Opened 7 years ago by vivekanand1101.
vivekanand1101/pagure branches  into  master

@@ -226,7 +226,7 @@ 

      var selectedValue = $(this).attr('id');

      var action = $("#watch_project").attr('action');

        if (selectedValue != "unwatch_button") {

-         action = action.replace('/0', '/1');

+         action = action.replace('/settings/0', '/settings/1');

          $('#watch_project').attr('action', action);

        }

        $('#watch_project').submit();

file modified
+2 -2
@@ -1922,8 +1922,8 @@ 

      )

  

  

- @APP.route('/watch/<repo>/settings/<watch>', methods=['POST'])

- @APP.route('/watch/fork/<user>/<repo>/settings/<watch>', methods=['POST'])

+ @APP.route('/watch/<repo:repo>/settings/<watch>', methods=['POST'])

+ @APP.route('/watch/fork/<user>/<repo:repo>/settings/<watch>', methods=['POST'])

  @login_required

  def watch_repo(repo, watch, user=None):

      """ Marked for watching or Unwatching

The change in repo_master.html is to avoid replacing the '0' in project name such as this.

Pull-Request has been merged by pingou

7 years ago