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

  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;
  });
});