Subversion Repositories DevTools

Rev

Rev 7292 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7292 Rev 7382
Line 461... Line 461...
461
        element.removeChild(element.firstChild); // remove all existing content
461
        element.removeChild(element.firstChild); // remove all existing content
462
    element.appendChild(document.createTextNode(text));
462
    element.appendChild(document.createTextNode(text));
463
    }
463
    }
464
}
464
}
465
 
465
 
-
 
466
/////////////////////////////////////////////////////////////////  
-
 
467
//  Local versions of showGlobalProgress and hideGlobalProgress
-
 
468
//  used to abstract the use of iframes.
-
 
469
//  
-
 
470
<%If NOT bInIframe Then %>
-
 
471
    function localShowGlobalProgress() {
-
 
472
        showGlobalProgress()
-
 
473
    }
-
 
474
 
-
 
475
    function localHideGlobalProgress() {
-
 
476
        hideGlobalProgress();
-
 
477
    }
-
 
478
<%Else%>
-
 
479
    function localShowGlobalProgress() {
-
 
480
        window.parent.showGlobalProgress()
-
 
481
    }
-
 
482
 
-
 
483
    function localHideGlobalProgress() {
-
 
484
        window.parent.hideGlobalProgress();
-
 
485
    }
-
 
486
<%End If%>
-
 
487
 
-
 
488
 
466
//////////////////////////////////////////////////////////////////
489
//////////////////////////////////////////////////////////////////
467
// Function: changeToAutoVersionNumberAssignment
490
// Function: changeToAutoVersionNumberAssignment
468
//
491
//
469
// Purpose: Hide the relevant sections of the form
492
// Purpose: Hide the relevant sections of the form
470
//
493
//
Line 608... Line 631...
608
        reseteMessage();
631
        reseteMessage();
609
        MM_validateForm("--Silent",'FRpkgName','Package Name','RisPackage');
632
        MM_validateForm("--Silent",'FRpkgName','Package Name','RisPackage');
610
        checkPackageHighlight( ! document.MM_returnValue, 'Name well formed', 'Invalid Characters in name');
633
        checkPackageHighlight( ! document.MM_returnValue, 'Name well formed', 'Invalid Characters in name');
611
        if ( ! document.MM_returnValue ) return jQuery.Deferred().resolve();;
634
        if ( ! document.MM_returnValue ) return jQuery.Deferred().resolve();;
612
 
635
 
613
        showGlobalProgress();
636
        localShowGlobalProgress();
614
        return jQuery.get('_json_checkPackage.asp',{
637
        return jQuery.get('_json_checkPackage.asp',{
615
                       packageName :  document.getElementById('FRpkgName').value,
638
                       packageName :  document.getElementById('FRpkgName').value,
616
                       Opr : 'checkName'
639
                       Opr : 'checkName'
617
                   }, function(){}, 'json'
640
                   }, function(){}, 'json'
618
            ).done(function(data, textStatus, jqXHR){
641
            ).done(function(data, textStatus, jqXHR){
Line 629... Line 652...
629
                    checkPackageHighlight( 1, '','Error in AJAX operation');
652
                    checkPackageHighlight( 1, '','Error in AJAX operation');
630
                }
653
                }
631
            }).fail(function(jqXHR, textStatus, errorThrown){
654
            }).fail(function(jqXHR, textStatus, errorThrown){
632
                checkPackageHighlight( 1, '','Error in AJAX operation');
655
                checkPackageHighlight( 1, '','Error in AJAX operation');
633
            }).always(function(){
656
            }).always(function(){
634
                hideGlobalProgress();
657
                localHideGlobalProgress();
635
                resizeFrame();
658
                resizeFrame();
636
            });
659
            });
637
    }
660
    }
638
    return jQuery.Deferred().resolve();
661
    return jQuery.Deferred().resolve();
639
}
662
}
Line 730... Line 753...
730
            showeMessage(document.MM_error);
753
            showeMessage(document.MM_error);
731
            fieldError = true;
754
            fieldError = true;
732
            return jQuery.Deferred().resolve();
755
            return jQuery.Deferred().resolve();
733
        }
756
        }
734
 
757
 
735
        showGlobalProgress();
758
        localShowGlobalProgress();
736
        return jQuery.get('_json_checkPackage.asp',{
759
        return jQuery.get('_json_checkPackage.asp',{
737
                       packageName :  document.getElementById('FRpkgName').value,
760
                       packageName :  document.getElementById('FRpkgName').value,
738
                       Opr : 'checkVer',
761
                       Opr : 'checkVer',
739
                       Version : document.all['FRvnumber'].value + document.all['v_ext'].value
762
                       Version : document.all['FRvnumber'].value + document.all['v_ext'].value
740
                   }, function(){}, 'json'
763
                   }, function(){}, 'json'
Line 757... Line 780...
757
                        setIdText('vnError','');
780
                        setIdText('vnError','');
758
                    }
781
                    }
759
            }).fail(function(jqXHR, textStatus, errorThrown){
782
            }).fail(function(jqXHR, textStatus, errorThrown){
760
                checkPackageHighlight( 1, '','Error in AJAX operation');
783
                checkPackageHighlight( 1, '','Error in AJAX operation');
761
            }).always(function(){
784
            }).always(function(){
762
                hideGlobalProgress();
785
                localHideGlobalProgress();
763
                resizeFrame();
786
                resizeFrame();
764
            });
787
            });
765
    }
788
    }
766
}
789
}
767
 
790
 
Line 826... Line 849...
826
           }
849
           }
827
 
850
 
828
       }).fail(function(jqXHR, textStatus, errorThrown){
851
       }).fail(function(jqXHR, textStatus, errorThrown){
829
           checkPackageHighlight( 1, '','Error in AJAX operation');
852
           checkPackageHighlight( 1, '','Error in AJAX operation');
830
       }).always(function(){
853
       }).always(function(){
831
           hideGlobalProgress();
854
           localHideGlobalProgress();
832
           resizeFrame();
855
           resizeFrame();
833
       });
856
       });
834
}
857
}
835
<%End If%>
858
<%End If%>
836
 
859
 
Line 917... Line 940...
917
                    //  Export the change_type field in a sanitised form
940
                    //  Export the change_type field in a sanitised form
918
                    var ct = getCheckedRadio(document.forms.NEWversion.elements.change_type1).value;
941
                    var ct = getCheckedRadio(document.forms.NEWversion.elements.change_type1).value;
919
                    if(!document.NEWversion.version_type[0].checked) ct = 'F';
942
                    if(!document.NEWversion.version_type[0].checked) ct = 'F';
920
                    document.all['change_type'].value = ct;
943
                    document.all['change_type'].value = ct;
921
 
944
 
922
                    showGlobalProgress();
945
                    localShowGlobalProgress();
923
                    <%If parRename <> "" Then%>
946
                    <%If parRename <> "" Then%>
924
                        updateVersionInfo().always(function(){
947
                        updateVersionInfo().always(function(){
925
                            if (!fieldError)
948
                            if (!fieldError)
926
                            {
949
                            {
927
                                <%If NOT bInIframe Then %>
950
                                <%If NOT bInIframe Then %>
Line 938... Line 961...
938
                        f.submit();
961
                        f.submit();
939
                        return false;
962
                        return false;
940
                    <%End If%>
963
                    <%End If%>
941
                }
964
                }
942
                // Hide progress bar that is exposed because the previous tests were OK
965
                // Hide progress bar that is exposed because the previous tests were OK
943
                hideGlobalProgress();
966
                localHideGlobalProgress();
944
                resizeFrame();
967
                resizeFrame();
945
                checkMode = 0;
968
                checkMode = 0;
946
            });
969
            });
947
        });
970
        });
948
    }
971
    }