Subversion Repositories DevTools

Rev

Rev 5182 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5182 Rev 5183
Line 474... Line 474...
474
             },
474
             },
475
<%If bCanDestroy Then%>
475
<%If bCanDestroy Then%>
476
             delete : function (data) {
476
             delete : function (data) {
477
                 //console.log("Delete:", data.rtagid);
477
                 //console.log("Delete:", data.rtagid);
478
                 var that = this;
478
                 var that = this;
-
 
479
                 $.miniMenu.currentRow.addClass('body_row_sel_outline');
479
                 this.confirmDelete(function(){
480
                 this.confirmDelete(function(){
480
                     that.gotoUrl("_destroy_release.asp", {rtag_id_list : data.rtagid, proj_id : <%=parProjId%>, rfile : "<%=ScriptName%>"});
481
                     that.gotoUrl("_destroy_release.asp", {rtag_id_list : data.rtagid, proj_id : <%=parProjId%>, rfile : "<%=ScriptName%>"});
-
 
482
                 }, function(){
-
 
483
                     $('#releaseTree .body_row_sel_outline').removeClass('body_row_sel_outline');
481
                 });
484
                 });
482
             },
485
             },
483
<%End If%>
486
<%End If%>
484
<%If bCanMove Then%>
487
<%If bCanMove Then%>
485
             move : function (data) {
488
             move : function (data) {
Line 528... Line 531...
528
                 }
531
                 }
529
             },
532
             },
530
 
533
 
531
             // Confirm action
534
             // Confirm action
532
             //     okcb - callback function
535
             //     okcb - callback function
533
             confirmDelete : function(okcb){
536
             confirmDelete : function(okcb, cancelcb){
534
                 $( "<div>Are you sure</div>" ).dialog({
537
                 $( "<div>Are you sure</div>" ).dialog({
535
                    resizable: true,
538
                    resizable: true,
536
                    height:170,
539
                    height:170,
537
                    width : 300,
540
                    width : 300,
538
                    modal: true,
541
                    modal: true,
Line 550... Line 553...
550
                        "Destroy Release": function() {
553
                        "Destroy Release": function() {
551
                            okcb();
554
                            okcb();
552
                            $(this).dialog("close");
555
                            $(this).dialog("close");
553
                        },
556
                        },
554
                        Cancel: function() {
557
                        Cancel: function() {
-
 
558
                            if(cancelcb) cancelcb();
555
                            $(this).dialog("close");
559
                            $(this).dialog("close");
556
                        }
560
                        }
557
                    }
561
                    }
558
                 });
562
                 });
559
             },
563
             },