Subversion Repositories DevTools

Rev

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

Rev 5183 Rev 5184
Line 473... Line 473...
473
                 this.gotoUrl("_change_release_mode.asp", {rtag_id : data.rtagid, mode_code : 5 , rfile : "<%=ScriptName%>"});
473
                 this.gotoUrl("_change_release_mode.asp", {rtag_id : data.rtagid, mode_code : 5 , rfile : "<%=ScriptName%>"});
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;
-
 
479
                 $.miniMenu.currentRow.addClass('body_row_sel_outline');
478
                 $.miniMenu.currentRow.addClass('body_row_sel_outline');
-
 
479
                 var that = this;
-
 
480
                 var delObject = $.Deferred(that.confirmDelete
480
                 this.confirmDelete(function(){
481
                 ).done(function(){
481
                     that.gotoUrl("_destroy_release.asp", {rtag_id_list : data.rtagid, proj_id : <%=parProjId%>, rfile : "<%=ScriptName%>"});
482
                     that.gotoUrl("_destroy_release.asp", {rtag_id_list : data.rtagid, proj_id : <%=parProjId%>, rfile : "<%=ScriptName%>"});
482
                 }, function(){
483
                 }).fail(function(){
483
                     $('#releaseTree .body_row_sel_outline').removeClass('body_row_sel_outline');
484
                     $('#releaseTree .body_row_sel_outline').removeClass('body_row_sel_outline');
484
                 });
485
                 });
485
             },
486
             },
486
<%End If%>
487
<%End If%>
487
<%If bCanMove Then%>
488
<%If bCanMove Then%>
Line 491... Line 492...
491
             },
492
             },
492
<%End If%>
493
<%End If%>
493
<%If bCanClone Then%>
494
<%If bCanClone Then%>
494
             clone : function(data) {
495
             clone : function(data) {
495
                 //console.log("Clone:", data.rtagid);
496
                 //console.log("Clone:", data.rtagid);
496
                 this.gotoUrl("new_release.asp", { rtag_id_list : data.rtagid, proj_id : <%=parProjId%> });
497
                 this.gotoUrl("new_release.asp", { rtag_id_list : data.rtagid, proj_id : <%=parProjId%>, branch : "Y" });
497
             },
498
             },
498
<%End If%>
499
<%End If%>
499
 
500
 
500
             //
501
             //
501
             // Internal functions
502
             // Internal functions
Line 530... Line 531...
530
                     window.location.href = url;
531
                     window.location.href = url;
531
                 }
532
                 }
532
             },
533
             },
533
 
534
 
534
             // Confirm action
535
             // Confirm action
535
             //     okcb - callback function
536
             //     Delegate Object
536
             confirmDelete : function(okcb, cancelcb){
537
             confirmDelete : function(dbo){
537
                 $( "<div>Are you sure</div>" ).dialog({
538
                 $( "<div>Are you sure</div>" ).dialog({
538
                    resizable: true,
539
                    resizable: true,
539
                    height:170,
540
                    height:170,
540
                    width : 300,
541
                    width : 300,
541
                    modal: true,
542
                    modal: true,
Line 546... Line 547...
546
                        var markup = '<p><img src="images/i_critical.gif" style="float:left; margin:0 7px 20px 0;">This Release will be permanently destroyed.<p>Are you sure?';
547
                        var markup = '<p><img src="images/i_critical.gif" style="float:left; margin:0 7px 20px 0;">This Release will be permanently destroyed.<p>Are you sure?';
547
                        $(this).html(markup);
548
                        $(this).html(markup);
548
                    },
549
                    },
549
                    close : function() {
550
                    close : function() {
550
                        $(this).remove();
551
                        $(this).remove();
-
 
552
                        dbo.reject();
551
                    },
553
                    },
552
                    buttons: {
554
                    buttons: {
553
                        "Destroy Release": function() {
555
                        "Destroy Release": function() {
554
                            okcb();
556
                            dbo.resolve();
555
                            $(this).dialog("close");
557
                            $(this).dialog("close");
556
                        },
558
                        },
557
                        Cancel: function() {
559
                        Cancel: function() {
558
                            if(cancelcb) cancelcb();
-
 
559
                            $(this).dialog("close");
560
                            $(this).dialog("close");
560
                        }
561
                        }
561
                    }
562
                    }
562
                 });
563
                 });
563
             },
564
             },
Line 874... Line 875...
874
                              End If
875
                              End If
875
                              rsQry.Close
876
                              rsQry.Close
876
                              Set rsQry = Nothing
877
                              Set rsQry = Nothing
877
                              %>
878
                              %>
878
                        </table>
879
                        </table>
879
                        <%=objPMod.ComposeHiddenTags()%>
-
 
880
                        <input type="hidden" name="action" value="true">
-
 
881
                        </form>
-
 
882
                        <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-
 
883
                        <!--#include file="messages/_msg_inline.asp"-->
-
 
884
                        <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-
 
885
 
-
 
886
                     <%End If%>
880
                     <%End If%>
887
                     <!-- LIST VIEW END ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
881
                     <!-- LIST VIEW END ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-
 
882
                     <%=objPMod.ComposeHiddenTags()%>
-
 
883
                     <input type="hidden" name="action" value="true">
-
 
884
                     </form>
-
 
885
                     <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-
 
886
                     <!--#include file="messages/_msg_inline.asp"-->
-
 
887
                     <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
888
                  </td>
888
                  </td>
889
               </tr>
889
               </tr>
890
         </table>
890
         </table>
891
      </td>
891
      </td>
892
      <td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
892
      <td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>