added plugin api
This commit is contained in:
parent
f23314b925
commit
16052b4fdf
6 changed files with 37 additions and 6 deletions
|
@ -243,6 +243,13 @@ function replyTo(username, status_id) {
|
|||
controller.openNewTweetWindowInReplyTo_statusId_(username, status_id);
|
||||
}
|
||||
|
||||
function loadPlugin(url) {
|
||||
var plugin = document.createElement("script");
|
||||
plugin.type = "text/javascript";
|
||||
plugin.src = url;
|
||||
document.getElementsByTagName("head")[0].appendChild(plugin);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
@ -738,6 +745,7 @@ $(document).ready(function() {
|
|||
<ol id="body" class="messages"></ol>
|
||||
<script type="text/javascript">
|
||||
var twittia_instance = new Twittia();
|
||||
loadPlugin(controller.pluginURL());
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in a new issue