Vlad Kurkin (b_vladi) wrote in changelog,
Vlad Kurkin
b_vladi
changelog

[ljcom] r10870: LJSUP-9516: Update.bml. Link "choose ima...

Committer: vkurkin
LJSUP-9516: Update.bml. Link "choose image" for FB is not working.
U   trunk/htdocs/js/fb-select-image.js
Modified: trunk/htdocs/js/fb-select-image.js
===================================================================
--- trunk/htdocs/js/fb-select-image.js	2011-08-16 09:24:14 UTC (rev 10869)
+++ trunk/htdocs/js/fb-select-image.js	2011-08-16 09:24:54 UTC (rev 10870)
@@ -19,7 +19,11 @@
 	if(selectUpdate) {
 		options = {
 			getText: function() {
-				return getPostText('draft');
+				if(window.switchedRteOn){
+					return CKEDITOR.instances.draft.getData();
+				} else {
+					return jQuery('#draft').val();
+				}
 			},
 			getUserPic: function() {
 				return (userPic) ? userPic.src : "";
@@ -104,7 +108,7 @@
 			this.totalImages = imgList.length;
 			this.page = 1;
 
-			if((imgList.length == 0 || !jQuery.inArray(thumb.value, imgList)) && thumb.value != userpicVal && thumb.value != noThumb) {
+			if((imgList.length == 0 || jQuery.inArray(thumb.value, imgList) == -1) && thumb.value != userpicVal && thumb.value != noThumb) {
 				thumb.value = "";
 			}
 

Tags: b_vladi, 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