Browse Source

- Merge with edhelas

pull/16/head
Jaussoin Timothée 11 years ago
parent
commit
c3c7dbdf1f
  1. 20
      app/widgets/Post/post.js

20
app/widgets/Post/post.js

@ -0,0 +1,20 @@
var Post = {
init: function() {
if(localStorage.getItem('share_url')) {
Post_ajaxCreate();
MovimTpl.showPanel();
}
},
setEmbed: function() {
if(localStorage.getItem('share_url')) {
var embed = document.querySelector('input[name=embed]');
embed.value = localStorage.getItem('share_url');
embed.onpaste();
}
}
}
MovimWebsocket.attach(function() {
Post.init();
});
Loading…
Cancel
Save