2016-02-05 00:53:46 +01:00
|
|
|
(function ($) {
|
|
|
|
$.entwine('ss', function ($) {
|
|
|
|
/**
|
|
|
|
* Prevent the CMS hijacking the return key
|
|
|
|
*/
|
|
|
|
$('.add-existing-autocompleter input.text').entwine({
|
|
|
|
'onkeydown': function (e) {
|
2017-01-13 03:33:53 +01:00
|
|
|
if (e.which == 13) {
|
2016-02-05 00:53:46 +01:00
|
|
|
$parent = $(this).parents('.add-existing-autocompleter');
|
|
|
|
$parent.find('button[type="submit"]').click();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})(jQuery);
|