+ new Ajax.Request('backend.php', {
+ parameters: dojo.objectToQuery(this.getValues()),
+ onSuccess: function(transport) {
+ notify_info(transport.responseJSON.message);
+ $('postReplyUrl').writeAttribute(
+ 'href', transport.responseJSON.location
+ );
+ $('postReplyUrl').innerHTML = transport.responseJSON.location;
+ //Effect.Shrink('postReply');
+ //Effect.Grow('postReplySuccess');
+ $('postReply').hide();
+ $('postReplySuccess').show();
+ },
+ onFailure: function(transport) {
+ notify_error(transport.responseText);
+ }
+ });
+ }
+ </script>
+
+ <?php print_hidden('op', 'pluginhandler'); ?>
+ <?php print_hidden('plugin', 'micropub'); ?>
+ <?php print_hidden('method', 'action'); ?>
+ <?php print_hidden('mode', 'post'); ?>
+
+ <?php print_hidden('replyTo', htmlspecialchars($article['link'])); ?>