view gis_gui/blocks/notes.js @ 273:d1b43624cc63

some hacks to make the european4D connection work
author dwinter
date Thu, 23 Feb 2012 11:44:38 +0100
parents 7f008e782563
children
line wrap: on
line source

$(".block[id*=messages]").livequery(function() {

    var block = $(this);
    block.find("#notes_new").live('click', function() {
	var container = $(this).parents().find(".block");
      	switchSubscreens(container, "main", "editor");
      });

    block.find("#notes_cancel_button").live('click', function() {
	var container = $(this).parents().find(".block");
      	switchSubscreens(container, "editor", "main");
      });
    
    block.find("#notes_sendto").live('keyup', function(){
	if($(this).val()==""){
	  block.find("#notes_save_button").val("Save");
	}
	else{
	  block.find("#notes_save_button").val("Send");
	}

      });
    
    
  });