When editing an external link, the loading process (AJAX call) will not have any "data".
This case will result in that the $('#edit-link-wrapper input').show(); will never be triggerd and the loading div will stay.

Comments

anon’s picture

Quick fix for this is to change "linkit_search_styled_link" function in linkit.js

function linkit_search_styled_link(string) {
  $('#edit-link-wrapper input').hide();
  $('#edit-link-wrapper label').after($('<span></span>').addClass('throbber').html('<strong>' + Drupal.t('Loading path...') + '</strong>'));
	// DO AJAX!
  var result = $.get(Drupal.settings.linkit.ajaxcall, { string: string } , function(data) {
    if(data) {
      $('#edit-link').val(data);
      $('#edit-link-wrapper .throbber').remove();
      $('#edit-link-wrapper input').show();
    } else {
      $('#edit-link').val(string);
      $('#edit-link-wrapper .throbber').remove();
      $('#edit-link-wrapper input').show();
    }
  });
}
anon’s picture

Committed to 6.x-1.5, I will realse that verison very soon if there is no other problems with 6.x-1.4

anon’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.