Mercurial > hg > ChinaGisRestApi
comparison gis_gui/blocks/notes.js @ 63:7f008e782563
add gui files to product via FileSystemSite
author | casties |
---|---|
date | Fri, 05 Nov 2010 18:52:55 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
62:3905385c8854 | 63:7f008e782563 |
---|---|
1 $(".block[id*=messages]").livequery(function() { | |
2 | |
3 var block = $(this); | |
4 block.find("#notes_new").live('click', function() { | |
5 var container = $(this).parents().find(".block"); | |
6 switchSubscreens(container, "main", "editor"); | |
7 }); | |
8 | |
9 block.find("#notes_cancel_button").live('click', function() { | |
10 var container = $(this).parents().find(".block"); | |
11 switchSubscreens(container, "editor", "main"); | |
12 }); | |
13 | |
14 block.find("#notes_sendto").live('keyup', function(){ | |
15 if($(this).val()==""){ | |
16 block.find("#notes_save_button").val("Save"); | |
17 } | |
18 else{ | |
19 block.find("#notes_save_button").val("Send"); | |
20 } | |
21 | |
22 }); | |
23 | |
24 | |
25 }); |