aboutsummaryrefslogtreecommitdiff
path: root/data/assets/js/admin/dialogs/blog-edit.js
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-05-24 12:00:43 -0400
committerPaul Duncan <pabs@pablotron.org>2016-05-24 12:00:43 -0400
commitc758a064eb97b16fd875c9f5a624bb98f8a774dc (patch)
tree7142b85e14d98ae23a0a25a781d1104fdb91a27b /data/assets/js/admin/dialogs/blog-edit.js
parent0cfd477f80c3773e97ec5b9a19c13e0aaf229d9f (diff)
downloadguff-c758a064eb97b16fd875c9f5a624bb98f8a774dc.tar.bz2
guff-c758a064eb97b16fd875c9f5a624bb98f8a774dc.zip
add full editing, fts search
Diffstat (limited to 'data/assets/js/admin/dialogs/blog-edit.js')
-rw-r--r--data/assets/js/admin/dialogs/blog-edit.js20
1 files changed, 18 insertions, 2 deletions
diff --git a/data/assets/js/admin/dialogs/blog-edit.js b/data/assets/js/admin/dialogs/blog-edit.js
index 46a782b..0084028 100644
--- a/data/assets/js/admin/dialogs/blog-edit.js
+++ b/data/assets/js/admin/dialogs/blog-edit.js
@@ -1,7 +1,23 @@
jQuery(function($) {
"use strict";
- $('#blog-edit-dialog').on('post-data-loaded', function(r) {
- console.log(r);
+ var p = '#blog-edit-';
+
+ $(p + 'dialog').on('guff.loaded', function(ev) {
+ var r = ev.post_data;
+ $(p + 'tags').val(r.tags);
+ });
+
+ $(p + 'confirm').click(function() {
+ $(p + 'dialog').trigger({
+ type: 'guff.save',
+
+ post_data: {
+ tags: $(p + 'tags').val(),
+ },
+ });
+
+ // stop event
+ return false;
});
});