Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r9473: LJSUP-6573 (Add ability to select pictur...

Committer: ailyin
LJSUP-6573 (Add ability to select pictures for Facebook publishing)
A   trunk/htdocs/js/fb-select-image.js
Added: trunk/htdocs/js/fb-select-image.js
===================================================================
--- trunk/htdocs/js/fb-select-image.js	                        (rev 0)
+++ trunk/htdocs/js/fb-select-image.js	2010-09-08 07:22:16 UTC (rev 9473)
@@ -0,0 +1,9 @@
+jQuery(function() {
+    jQuery("a[href*=#select-fb-thumbnail]").click(function(e) {
+        e.preventDefault();
+        var url = window.prompt("enter picture url");
+        if (url != null) {
+            jQuery("#repost_facebook_thumbnail").val(url);
+        }
+    });
+});

Tags: andy, js, ljcom
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments