Advertisement
Guest User

Untitled

a guest
Aug 18th, 2012
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                 .bind("complete", function(e, value) {
  2.                     gEditCount--;
  3.  
  4.                     self.html(linkifyText(self.text()));
  5.  
  6.                     if (context_type == "body_top" ||
  7.                         context_type == "body_bottom") {
  8.                         review_reply[context_type] = value;
  9.                         obj = review_reply;
  10.                     } else if (context_type == "comment") {
  11.                         obj = new RB.DiffCommentReply(review_reply, null,
  12.                                                       context_id);
  13.                         obj.setText(value);
  14.                     } else if (context_type == "screenshot_comment") {
  15.                         obj = new RB.ScreenshotCommentReply(review_reply, null,
  16.                                                             context_id);
  17.                         obj.setText(value);
  18.                     } else if (context_type == "file_comment") {
  19.                         obj = new RB.FileAttachmentCommentReply(
  20.                             review_reply, null, context_id);
  21.                         obj.setText(value);
  22.                     } else {
  23.                         /* Shouldn't be reached. */
  24.                         return;
  25.                     }
  26.  
  27.                     obj.save({
  28.                         buttons: bannerButtonsEl,
  29.                         success: function() {
  30.                             removeCommentFormIfEmpty(self);
  31.                             showReplyDraftBanner(review_id);
  32.                         }
  33.                     });
  34.                 })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement