Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 1 file changed
  • 0 comments
  • 1 contributor

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. 6  iiv/js/iivutil.js
6  iiv/js/iivutil.js
@@ -412,9 +412,11 @@ function featureSelect(feature) {
412 412
     
413 413
     var viewerUI = this;
414 414
     var title = "www.islandnewspapers.ca";
  415
+   // var publicORpriv = $('#annotationPublic').attrib('checked')?1:0;
  416
+    		
415 417
     //TODO: test the input field to ensure text exists
416 418
     //var testField = "if ($('#annotationText').val().length > 0) { return true } else { alert('Please ensure annotation text');}";
417  
-    var onClickText = "saveAnnotation($('#annotationText').val(),'" + coordsString + "',$('input[name=annotationPublic]:checked').val());";
  419
+    var onClickText = "saveAnnotation($('#annotationText').val(),'" + coordsString + "', $('#annotationPublic').attr('checked')?1:0)";
418 420
     popup = new OpenLayers.Popup.FramedCloud("Region", 
419 421
         feature.geometry.getBounds().getCenterLonLat(),
420 422
         null,
@@ -448,6 +450,7 @@ function saveAnnotation(annotationText,coordinates, publicOn){
448 450
 	//alert("i would have saved:" + annotationText + "\n" +"Public=" + publicOn);	
449 451
 	//alert(coordinates);	
450 452
 	var pid=viewer.currentPid();	
  453
+	
451 454
 	addAnnotation(pid,annotationText,coordinates,publicOn);
452 455
 	// sfb, added to close popup box
453 456
 	//if (popup != null) {
@@ -575,3 +578,4 @@ function closePopupAndChangeControls(){
575 578
 	    popup = null;
576 579
     }
577 580
 }
  581
+  

No commit comments for this range

Something went wrong with that request. Please try again.