diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-05-24 12:00:43 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-05-24 12:00:43 -0400 |
commit | c758a064eb97b16fd875c9f5a624bb98f8a774dc (patch) | |
tree | 7142b85e14d98ae23a0a25a781d1104fdb91a27b /data/assets/js/admin/dialogs/project-edit.js | |
parent | 0cfd477f80c3773e97ec5b9a19c13e0aaf229d9f (diff) | |
download | guff-c758a064eb97b16fd875c9f5a624bb98f8a774dc.tar.bz2 guff-c758a064eb97b16fd875c9f5a624bb98f8a774dc.zip |
add full editing, fts search
Diffstat (limited to 'data/assets/js/admin/dialogs/project-edit.js')
-rw-r--r-- | data/assets/js/admin/dialogs/project-edit.js | 21 |
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; }); }); |