Skip to content
Browse files

add function

  • Loading branch information...
1 parent 893aaed commit 5ef02cd4ff904b7f7e7077ed18c6df22cb678a6b @firstmustok committed Dec 17, 2011
Showing with 7 additions and 3 deletions.
  1. +7 −3 weibo.js
View
10 weibo.js
@@ -21,11 +21,15 @@
},
delMsgList : function(){
var t = document.getElementsByTagName("div");
+ var delBtn, cfmBtn;
for(var i in t){
- var a=t[i].getAttribute('action-type');
- if(a!=null && a=='delMessageList')
- alert(t[i].child);
+ var attr = t[i].getAttribute('action-type');
+ if(attr != null && attr == 'delMessageList'){
+ delBtn = t[i];
+ }
}
+ delBtn && delBtn.fireEvent("onclick");//
+ alert("Delete Message Success!");
}
};
weibo.init();

0 comments on commit 5ef02cd

Please sign in to comment.
Something went wrong with that request. Please try again.