aboutsummaryrefslogtreecommitdiff
path: root/data/assets/js/admin/dialogs/project-edit.js
blob: 17236f6c87db22c1a46b903b49e4db99094e2737 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
jQuery(function($) {
  "use strict";

  var p = '#project-edit-';

  $(p + 'dialog').on('guff.loaded', function(ev) {
    var r = ev.post_data;

    $(p + 'repo').val(r.repo_url);
  });

  $(p + 'confirm').click(function() {
    $(p + 'dialog').trigger({
      type: 'guff.save',

      post_data: {
        repo_url: $(p + 'repo').val(),
      },
    });

    // stop event
    return false;
  });
});