3 * Title attribute functions.
6 (function ($, Drupal, document) {
10 var fieldName = '[name="attributes[title]"]';
13 * Automatically populate the title attribute.
15 $(document).bind('linkit.autocomplete.select', function (triggerEvent, event, ui) {
16 if (ui.item.hasOwnProperty('title')) {
17 $('form.linkit-editor-dialog-form').find(fieldName).val(ui.item.title);
21 })(jQuery, Drupal, document);