@@ -51,36 +51,39 @@ function check_third_session () {
5151 }
5252 return false ;
5353}
54- function handleconflictfield ( val ) {
55- if ( val == 1 ) {
56- if ( document . form_post . conflict1 . value . length > 0 ) {
57- document . form_post . conflict2 . disabled = false ;
58- if ( document . form_post . conflict2 . value . length > 0 ) {
59- document . form_post . conflict3 . disabled = false ;
60- }
61- return 1 ;
62- } else {
63- if ( document . form_post . conflict2 . value . length > 0 || document . form_post . conflict3 . value . length > 0 ) {
64- alert ( "Second and Third Conflicts to Avoid fields are being disabled" ) ;
65- document . form_post . conflict2 . disabled = true ;
66- document . form_post . conflict3 . disabled = true ;
67- return 0 ;
68- }
69- }
70- } else {
71- if ( document . form_post . conflict2 . value . length > 0 ) {
72- document . form_post . conflict3 . disabled = false ;
73- return 1 ;
74- } else {
75- if ( document . form_post . conflict3 . value . length > 0 ) {
76- alert ( "Third Conflicts to Avoid field is being disabled" ) ;
77- document . form_post . conflict3 . disabled = true ;
78- return 0 ;
79- }
80- }
81- }
82- return 1 ;
83- }
54+
55+ // All calls to handleconflictfield are being disabled while we hack on the meaning of the three constraint fields
56+ // function handleconflictfield (val) {
57+ // if (val==1) {
58+ // if (document.form_post.conflict1.value.length > 0) {
59+ // document.form_post.conflict2.disabled=false;
60+ // if (document.form_post.conflict2.value.length > 0) {
61+ // document.form_post.conflict3.disabled=false;
62+ // }
63+ // return 1;
64+ // } else {
65+ // if (document.form_post.conflict2.value.length > 0 || document.form_post.conflict3.value.length > 0) {
66+ // alert("Second and Third Conflicts to Avoid fields are being disabled");
67+ // document.form_post.conflict2.disabled=true;
68+ // document.form_post.conflict3.disabled=true;
69+ // return 0;
70+ // }
71+ // }
72+ // } else {
73+ // if (document.form_post.conflict2.value.length > 0) {
74+ // document.form_post.conflict3.disabled=false;
75+ // return 1;
76+ // } else {
77+ // if (document.form_post.conflict3.value.length > 0) {
78+ // alert("Third Conflicts to Avoid field is being disabled");
79+ // document.form_post.conflict3.disabled=true;
80+ // return 0;
81+ // }
82+ // }
83+ // }
84+ // return 1;
85+ // }
86+
8487function delete_last1 ( ) {
8588 var b = document . form_post . conflict1 . value ;
8689 var temp = new Array ( ) ;
@@ -109,34 +112,38 @@ function delete_last3 () {
109112 document . form_post . wg_selector3 . selectedIndex = 0 ;
110113}
111114
112- function check_prior_conflict ( val ) {
113- if ( val == 2 ) {
114- if ( document . form_post . conflict1 . value == "" ) {
115- alert ( "Please specify your First Priority prior to using this field" ) ;
116- document . form_post . conflict2 . disabled = true ;
117- document . form_post . conflict3 . disabled = true ;
118- document . form_post . wg_selector1 . focus ( ) ;
119- return 0 ;
120- }
121- }
122- else {
123- if ( document . form_post . conflict2 . value == "" && document . form_post . conflict1 . value == "" ) {
124- alert ( "Please specify your First and Second Priority prior to using this field" ) ;
125- document . form_post . conflict3 . disabled = true ;
126- document . form_post . wg_selector1 . focus ( ) ;
127- return 0 ;
128- } else {
129- if ( document . form_post . conflict2 . value == "" ) {
130- alert ( "Please specify your Second Priority prior to using this field" ) ;
131- document . form_post . conflict3 . disabled = true ;
132- document . form_post . wg_selector2 . focus ( ) ;
133- return 0 ;
134- }
135- }
136- }
115+ // Not calling check_prior_confict (see ietf/secr/sreq/forms.py definition of SessionForm)
116+ // while we are hacking the use of the current three constraint types around. We could bring
117+ // this back in when we solve the general case of what constraints to use at what meeting.
118+ // When we do, the else should explicitly check for a value of 3.
119+ // function check_prior_conflict(val) {
120+ // if (val == 2) {
121+ // if (document.form_post.conflict1.value=="") {
122+ // alert("Please specify your First Priority prior to using this field");
123+ // document.form_post.conflict2.disabled=true;
124+ // document.form_post.conflict3.disabled=true;
125+ // document.form_post.wg_selector1.focus();
126+ // return 0;
127+ // }
128+ // }
129+ // else {
130+ // if (document.form_post.conflict2.value=="" && document.form_post.conflict1.value=="") {
131+ // alert("Please specify your First and Second Priority prior to using this field");
132+ // document.form_post.conflict3.disabled=true;
133+ // document.form_post.wg_selector1.focus();
134+ // return 0;
135+ // } else {
136+ // if (document.form_post.conflict2.value=="") {
137+ // alert("Please specify your Second Priority prior to using this field");
138+ // document.form_post.conflict3.disabled=true;
139+ // document.form_post.wg_selector2.focus();
140+ // return 0;
141+ // }
142+ // }
143+ // }
137144
138- return 1 ;
139- }
145+ // return 1;
146+ // }
140147
141148function retrieve_data ( ) {
142149 document . form_post . num_session . selectedIndex = document . form_post . prev_num_session . value ;
0 commit comments