Skip to content

Commit

Permalink
add function
Browse files Browse the repository at this point in the history
  • Loading branch information
firstmustok committed Dec 17, 2011
1 parent 893aaed commit 5ef02cd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions weibo.js
Expand Up @@ -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();
Expand Down

0 comments on commit 5ef02cd

Please sign in to comment.