Преглед изворни кода

Ticket #3998 - Convert auto-attached from textarea links.

AntonLV пре 4 година
родитељ
комит
a71227c127
2 измењених фајлова са 6 додато и 2 уклоњено
  1. 3 1
      modules/base/text/js/links.js
  2. 3 1
      modules/boonex/timeline/js/main.js

+ 3 - 1
modules/base/text/js/links.js

@@ -122,7 +122,9 @@ BxBaseModTextLinks.prototype.addAttachLink = function(oElement, sUrl)
                 iContentId = parseInt(oData.content_id);
 
             var oItem = $(oData.item).hide();
-            $('#' + $this._aHtmlIds['attach_link_form_field'] + iContentId).prepend(oItem).find('#' + oItem.attr('id')).bx_anim('show', $this._sAnimationEffect, $this._sAnimationSpeed);
+            $('#' + $this._aHtmlIds['attach_link_form_field'] + iContentId).prepend(oItem).find('#' + oItem.attr('id')).bx_anim('show', $this._sAnimationEffect, $this._sAnimationSpeed, function() {
+                $(this).bxProcessHtml();
+            });
         },
         'json'
     );

+ 3 - 1
modules/boonex/timeline/js/main.js

@@ -360,7 +360,9 @@ BxTimelineMain.prototype.addAttachLink = function(oElement, iId, sUrl)
             $this._oAttachedLinks[sUrl] = oData.id;
 
             var oItem = $(oData.item).hide();
-            $('#' + $this._aHtmlIds['attach_link_form_field'] + iEventId).prepend(oItem).find('#' + oItem.attr('id')).bx_anim('show', $this._sAnimationEffect, $this._sAnimationSpeed);
+            $('#' + $this._aHtmlIds['attach_link_form_field'] + iEventId).prepend(oItem).find('#' + oItem.attr('id')).bx_anim('show', $this._sAnimationEffect, $this._sAnimationSpeed, function() {
+                $(this).bxProcessHtml();
+            });
 
             $this.unlockForm($('#' + $this._aHtmlIds['attach_link_form_field'] + iEventId).parents('form:first'));
         },