mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
code review
correction after review: use the temporary variable instead of recalculating the JQuery node
This commit is contained in:
parent
ec8be09abe
commit
fdaefab7cb
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
|||
function replaceGroup() {
|
||||
$('li[data-inputosaurus][title*=","]').each(function (index, elem) {
|
||||
var $elem = $(elem)
|
||||
var title = $(elem).attr('title')
|
||||
var title = $elem.attr('title')
|
||||
var cut = title.indexOf('<')
|
||||
title = title.substr(cut + 1, title.length - cut - 2)
|
||||
$elem.parents('ul').find('.ui-autocomplete-input').val(title)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue