Subversion Repositories DevTools

Rev

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

Rev 7288 Rev 7292
Line 608... Line 608...
608
        reseteMessage();
608
        reseteMessage();
609
        MM_validateForm("--Silent",'FRpkgName','Package Name','RisPackage');
609
        MM_validateForm("--Silent",'FRpkgName','Package Name','RisPackage');
610
        checkPackageHighlight( ! document.MM_returnValue, 'Name well formed', 'Invalid Characters in name');
610
        checkPackageHighlight( ! document.MM_returnValue, 'Name well formed', 'Invalid Characters in name');
611
        if ( ! document.MM_returnValue ) return jQuery.Deferred().resolve();;
611
        if ( ! document.MM_returnValue ) return jQuery.Deferred().resolve();;
612
 
612
 
613
        MM_showProgressBar();
613
        showGlobalProgress();
614
        return jQuery.get('_json_checkPackage.asp',{
614
        return jQuery.get('_json_checkPackage.asp',{
615
                       packageName :  document.getElementById('FRpkgName').value,
615
                       packageName :  document.getElementById('FRpkgName').value,
616
                       Opr : 'checkName'
616
                       Opr : 'checkName'
617
                   }, function(){}, 'json'
617
                   }, function(){}, 'json'
618
            ).done(function(data, textStatus, jqXHR){
618
            ).done(function(data, textStatus, jqXHR){
Line 629... Line 629...
629
                    checkPackageHighlight( 1, '','Error in AJAX operation');
629
                    checkPackageHighlight( 1, '','Error in AJAX operation');
630
                }
630
                }
631
            }).fail(function(jqXHR, textStatus, errorThrown){
631
            }).fail(function(jqXHR, textStatus, errorThrown){
632
                checkPackageHighlight( 1, '','Error in AJAX operation');
632
                checkPackageHighlight( 1, '','Error in AJAX operation');
633
            }).always(function(){
633
            }).always(function(){
634
                MM_hideProgressBar();
634
                hideGlobalProgress();
635
                resizeFrame();
635
                resizeFrame();
636
            });
636
            });
637
    }
637
    }
638
    return jQuery.Deferred().resolve();
638
    return jQuery.Deferred().resolve();
639
}
639
}
Line 730... Line 730...
730
            showeMessage(document.MM_error);
730
            showeMessage(document.MM_error);
731
            fieldError = true;
731
            fieldError = true;
732
            return jQuery.Deferred().resolve();
732
            return jQuery.Deferred().resolve();
733
        }
733
        }
734
 
734
 
735
        MM_showProgressBar();
735
        showGlobalProgress();
736
        return jQuery.get('_json_checkPackage.asp',{
736
        return jQuery.get('_json_checkPackage.asp',{
737
                       packageName :  document.getElementById('FRpkgName').value,
737
                       packageName :  document.getElementById('FRpkgName').value,
738
                       Opr : 'checkVer',
738
                       Opr : 'checkVer',
739
                       Version : document.all['FRvnumber'].value + document.all['v_ext'].value
739
                       Version : document.all['FRvnumber'].value + document.all['v_ext'].value
740
                   }, function(){}, 'json'
740
                   }, function(){}, 'json'
Line 757... Line 757...
757
                        setIdText('vnError','');
757
                        setIdText('vnError','');
758
                    }
758
                    }
759
            }).fail(function(jqXHR, textStatus, errorThrown){
759
            }).fail(function(jqXHR, textStatus, errorThrown){
760
                checkPackageHighlight( 1, '','Error in AJAX operation');
760
                checkPackageHighlight( 1, '','Error in AJAX operation');
761
            }).always(function(){
761
            }).always(function(){
762
                MM_hideProgressBar();
762
                hideGlobalProgress();
763
                resizeFrame();
763
                resizeFrame();
764
            });
764
            });
765
    }
765
    }
766
}
766
}
767
 
767
 
Line 826... Line 826...
826
           }
826
           }
827
 
827
 
828
       }).fail(function(jqXHR, textStatus, errorThrown){
828
       }).fail(function(jqXHR, textStatus, errorThrown){
829
           checkPackageHighlight( 1, '','Error in AJAX operation');
829
           checkPackageHighlight( 1, '','Error in AJAX operation');
830
       }).always(function(){
830
       }).always(function(){
831
           MM_hideProgressBar();
831
           hideGlobalProgress();
832
           resizeFrame();
832
           resizeFrame();
833
       });
833
       });
834
}
834
}
835
<%End If%>
835
<%End If%>
836
 
836
 
Line 917... Line 917...
917
                    //  Export the change_type field in a sanitised form
917
                    //  Export the change_type field in a sanitised form
918
                    var ct = getCheckedRadio(document.forms.NEWversion.elements.change_type1).value;
918
                    var ct = getCheckedRadio(document.forms.NEWversion.elements.change_type1).value;
919
                    if(!document.NEWversion.version_type[0].checked) ct = 'F';
919
                    if(!document.NEWversion.version_type[0].checked) ct = 'F';
920
                    document.all['change_type'].value = ct;
920
                    document.all['change_type'].value = ct;
921
 
921
 
922
                    MM_showProgressBar();
922
                    showGlobalProgress();
923
                    <%If parRename <> "" Then%>
923
                    <%If parRename <> "" Then%>
924
                        updateVersionInfo().always(function(){
924
                        updateVersionInfo().always(function(){
925
                            if (!fieldError)
925
                            if (!fieldError)
926
                            {
926
                            {
927
                                <%If NOT bInIframe Then %>
927
                                <%If NOT bInIframe Then %>
Line 938... Line 938...
938
                        f.submit();
938
                        f.submit();
939
                        return false;
939
                        return false;
940
                    <%End If%>
940
                    <%End If%>
941
                }
941
                }
942
                // Hide progress bar that is exposed because the previous tests were OK
942
                // Hide progress bar that is exposed because the previous tests were OK
943
                MM_hideProgressBar();
943
                hideGlobalProgress();
944
                resizeFrame();
944
                resizeFrame();
945
                checkMode = 0;
945
                checkMode = 0;
946
            });
946
            });
947
        });
947
        });
948
    }
948
    }
949
    return false;
949
    return false;
950
}
950
}
951
 
951
 
952
</script>
952
</script>
953
<!-- _form_new_version_page.asp -->
953
<!-- _form_new_version_page.asp -->
954
<div id='ProgressBar' class='vixSpinner' style='visibility:hidden;'></div>
-
 
955
<table width="650px" border="0" cellspacing="0" cellpadding="0">
954
<table width="650px" border="0" cellspacing="0" cellpadding="0">
956
   <tr>
955
   <tr>
957
      <td>
956
      <td>
958
<%If NOT bInIframe Then %>
957
<%If NOT bInIframe Then %>
959
         <table width="100%" border="0" cellspacing="0" cellpadding="0" class='rounded_box'>
958
         <table width="100%" border="0" cellspacing="0" cellpadding="0" class='rounded_box'>