Commit d0ae544d authored by git's avatar git Committed by anon

Fixed attach behaviors to fail

parent 3e0d9693
......@@ -12,6 +12,10 @@ Drupal.linkit.editorDialog = Drupal.linkit.editorDialog || {};
Drupal.behaviors.linkit = {
attach: function(context, settings) {
if ($('#linkit-modal #edit-linkit-search', context).length == 0) {
return;
}
Drupal.linkit.$searchInput = $('#linkit-modal #edit-linkit-search', context);
// Create a "Better Autocomplete" object, see betterautocomplete.js
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment