@@ -401,13 +401,42 @@ jQuery(document).ready(function($) {
401
401
return false ;
402
402
} ) ;
403
403
404
+ var currentCommentView = gdn . urlQueryParam ( window . location . href , 'view' ) ;
405
+ var deliveryType = 'VIEW' ;
406
+ if ( currentCommentView ) {
407
+ deliveryType = currentCommentView == 'flat' ?'BOOL' :'VIEW' ;
408
+ }
404
409
// Delete comment
405
410
$ ( 'a.DeleteComment' ) . popup ( {
411
+ okButtonText :'Delete' ,
412
+ cancelButtonText : 'Cancel' ,
406
413
confirm : true ,
407
- confirmHeading : gdn . definition ( 'ConfirmDeleteCommentHeading' , 'Delete Comment' ) ,
408
- confirmText : gdn . definition ( 'ConfirmDeleteCommentText' , 'Are you sure you want to delete this comment?' ) ,
414
+ confirmHtml : '\
415
+ <div class="Overlay"> \
416
+ <div id="{popup.id}" class="Popup"> \
417
+ <div class="Border"> \
418
+ <div class="Body"> \
419
+ <div class="Content">\
420
+ <h1>Delete</h1>\
421
+ <form>\
422
+ <div>\
423
+ <p class="P Message">Are you sure you want to delete this item?</p>\
424
+ <div class="Buttons Buttons-Confirm"> \
425
+ <input type="button" class="Button Cancel Close" value="Cancel" id="Form_Cancel"/> \
426
+ <input type="button" class="Button Primary Okay Delete" value="Delete" /> \
427
+ </div> \
428
+ </div> \
429
+ </form> \
430
+ </div> \
431
+ </div> \
432
+ </div> \
433
+ </div> \
434
+ </div>' ,
435
+ confirmHeading : gdn . definition ( 'ConfirmDeleteCommentHeading' , 'Delete' ) ,
436
+ confirmText : gdn . definition ( 'ConfirmDeleteCommentText' , 'Are you sure you want to delete this item?' ) ,
409
437
followConfirm : false ,
410
- deliveryType : gdn . urlQueryParam ( $ ( 'a.DeleteComment' ) . attr ( 'href' ) , 'deliveryType' ) , //'VIEW' - threaded, 'BOOL' - flat
438
+ deliveryType : gdn . urlQueryParam ( $ ( 'a.DeleteComment' ) . attr ( 'href' ) , 'deliveryType' ) ?
439
+ gdn . urlQueryParam ( $ ( 'a.DeleteComment' ) . attr ( 'href' ) , 'deliveryType' ) : deliveryType , //'VIEW' - threaded, 'BOOL' - flat
411
440
afterConfirm : function ( json , sender ) {
412
441
var row = $ ( sender ) . parents ( 'li.ItemComment' ) ;
413
442
if ( json . ErrorMessage ) {
0 commit comments