aboutsummaryrefslogtreecommitdiff
path: root/data/assets/js/admin/dialogs/project-edit.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/assets/js/admin/dialogs/project-edit.js')
-rw-r--r--data/assets/js/admin/dialogs/project-edit.js21
1 files changed, 19 insertions, 2 deletions
diff --git a/data/assets/js/admin/dialogs/project-edit.js b/data/assets/js/admin/dialogs/project-edit.js
index a31abf2..17236f6 100644
--- a/data/assets/js/admin/dialogs/project-edit.js
+++ b/data/assets/js/admin/dialogs/project-edit.js
@@ -1,7 +1,24 @@
jQuery(function($) {
"use strict";
- $('#project-edit-dialog').on('post-data-loaded', function(r) {
- console.log(r);
+ 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;
});
});