Show More
@@ -1373,7 +1373,6 b' var MentionsAutoComplete = function (div' | |||
|
1373 | 1373 | |
|
1374 | 1374 | if(ownerAC.itemSelectEvent){ |
|
1375 | 1375 | ownerAC.itemSelectEvent.subscribe(function (sType, aArgs) { |
|
1376 | ||
|
1377 | 1376 | var myAC = aArgs[0]; // reference back to the AC instance |
|
1378 | 1377 | var elLI = aArgs[1]; // reference to the selected LI element |
|
1379 | 1378 | var oData = aArgs[2]; // object literal of selected item's result data |
@@ -1427,12 +1426,10 b' var MentionsAutoComplete = function (div' | |||
|
1427 | 1426 | return [null, null]; |
|
1428 | 1427 | }; |
|
1429 | 1428 | |
|
1430 | if (ownerAC.textboxKeyUpEvent){ | |
|
1431 | ownerAC.textboxKeyUpEvent.subscribe(function(type, args){ | |
|
1432 | ||
|
1433 | var ac_obj = args[0]; | |
|
1434 | var currentMessage = args[1]; | |
|
1435 | var currentCaretPosition = args[0]._elTextbox.selectionStart; | |
|
1429 | $divid = $('#'+divid); | |
|
1430 | $divid.keyup(function(e){ | |
|
1431 | var currentMessage = $divid.val(); | |
|
1432 | var currentCaretPosition = $divid[0].selectionStart; | |
|
1436 | 1433 | |
|
1437 | 1434 | var unam = ownerAC.get_mention(currentMessage, currentCaretPosition); |
|
1438 | 1435 | var curr_search = null; |
@@ -1442,13 +1439,7 b' var MentionsAutoComplete = function (div' | |||
|
1442 | 1439 | |
|
1443 | 1440 | ownerAC.dataSource.chunks = unam[1]; |
|
1444 | 1441 | ownerAC.dataSource.mentionQuery = curr_search; |
|
1445 | ||
|
1446 | }) | |
|
1447 | } | |
|
1448 | return { | |
|
1449 | ownerDS: ownerDS, | |
|
1450 | ownerAC: ownerAC, | |
|
1451 | }; | |
|
1442 | }); | |
|
1452 | 1443 | } |
|
1453 | 1444 | |
|
1454 | 1445 | var addReviewMember = function(id,fname,lname,nname,gravatar_link){ |
General Comments 0
You need to be logged in to leave comments.
Login now