Permalink
Browse files

fix bug

  • Loading branch information...
1 parent 0a4027b commit 63c97d590befb33b564dfe3b2c9db48880758200 @yimiqisan committed May 2, 2012
Showing with 6 additions and 7 deletions.
  1. +1 −2 handler/noteHandler.py
  2. +2 −2 htmls/event/publish_step_one.html
  3. +3 −3 static/js/jquery.note.js
View
@@ -28,9 +28,8 @@ def get(self):
class NoteItemHandler(BaseHandler):
@addslash
@session
- @calc('note')
+ #@calc('note')
def get(self, id):
- print self.calc
uid = self.SESSION['uid']
n = Note()
r = n._api.get(id, cuid=uid)
@@ -189,7 +189,7 @@
</div>
</div>
<div class="control-group">
- <label class="control-label" for="focusedInput">活动地点:</label>
+ <label class="control-label" for="focusedInput">开始地点:</label>
<div class="controls">
<input class="input-xlarge" name="place" type="text" value="" rel="popover" data-content="天南海北,海角天涯 天荒地老 海枯石烂 看着办吧!" data-original-title="施主自哪里来,往“哪里”去?">
</div>
@@ -245,7 +245,7 @@
<div id="editor" class="modal hide fade" style="width:700px;margin-left:-350px;">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
- <h3>行成安排</h3>
+ <h3>行程安排</h3>
</div>
<div class="modal-body">
<div class="tabbable tabs-right">
View
@@ -59,7 +59,7 @@
w = b('input[name=noteTags]').val();
var message = {'note_title': u, 'note_text': v, 'note_tag': w};
if (x) {message.nid=x;}
- $.postJSON("/a/note/", 'POST', message, function(response) {
+ $.postJSON("/a/note/?r="+Math.random(), 'POST', message, function(response) {
if (response.error){
alert(response.error);
return ;
@@ -78,7 +78,7 @@
dtl = b(this).find('textarea').val();
var src = b("#"+pid+" img").attr('src');
var img = '<img src='+src+'>';
- if (dtl) {img=img+'<div>'+dtl+'</div>';}
+ img=img+'<div>'+dtl+'</div>';
if (rdo == '-1') {
img = '<div class="PICL">'+img+'</div>';
}else if (rdo == '0') {
@@ -96,7 +96,7 @@
reg = "\/image\/attach\/(.*)";
var args = {};
args.pid = li.find('img').attr('src').match(reg)[1];
- $.postJSON("/a/image/delete/", 'POST', args, function(response) {
+ $.postJSON("/a/image/delete/?r="+Math.random(), 'POST', args, function(response) {
if (response.error){
alert(response.error);
}

0 comments on commit 63c97d5

Please sign in to comment.