Changeset 1166884
- Timestamp:
- 05/25/2015 04:53:41 AM (11 years ago)
- Location:
- qwiz-online-quizzes-and-flashcards/tags/0.00
- Files:
-
- 3 edited
-
qwiz-online-quizzes-wp-plugin.php (modified) (1 diff)
-
qwiz.js (modified) (2 diffs)
-
qwizcards.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
qwiz-online-quizzes-and-flashcards/tags/0.00/qwiz-online-quizzes-wp-plugin.php
r1166741 r1166884 4 4 * Plugin URI: http://dkprojects.net/qwiz 5 5 * Description: Easy online quizzes and flashcards for WordPress 6 * Version: beta 9for 3.006 * Version: beta10 for 3.00 7 7 * Author: Dan Kirshner 8 8 * Author URI: http://dkprojects.net/qwiz -
qwiz-online-quizzes-and-flashcards/tags/0.00/qwiz.js
r1166710 r1166884 1855 1855 } else { 1856 1856 minlength = Math.max (minlength, 3); 1857 placeholder = T ('Type %s+ chars, then select from list');1857 placeholder = T ('Type %s+ letters/numbers, then select'); 1858 1858 placeholder = placeholder.replace ('%s', minlength); 1859 1859 } … … 3269 3269 console.log ('[find_matching_terms] request.term:', request.term,', entry_metaphone:', entry_metaphone, ', entry_metaphone.length:', entry_metaphone.length); 3270 3270 } 3271 textentry_matches[textentry_i_qwiz] = $.map (current_question_textentry_terms_metaphones[textentry_i_qwiz], function (term_i) { 3272 if ((entry_metaphone != '' && term_i[1].indexOf (entry_metaphone) === 0) 3273 || term_i[0].toLowerCase ().indexOf (entry) === 0) { 3274 if (debug[5]) { 3271 textentry_matches[textentry_i_qwiz] 3272 = $.map (current_question_textentry_terms_metaphones[textentry_i_qwiz], 3273 function (term_i) { 3274 var ok_f; 3275 if (entry_metaphone == '') { 3276 3277 // A number, or perhaps other non-alpha characters. Match similar 3278 // terms. 3279 ok_f = term_i[1] == '' 3280 || term_i[0].toLowerCase ().indexOf (entry) === 0; 3281 } else { 3282 ok_f = term_i[1].indexOf (entry_metaphone) === 0 3283 || term_i[0].toLowerCase ().indexOf (entry) === 0; 3284 } 3285 if (ok_f) { 3286 if (debug[6]) { 3275 3287 console.log ('[find_matching_terms] term_i:', term_i); 3276 3288 } -
qwiz-online-quizzes-and-flashcards/tags/0.00/qwizcards.js
r1166741 r1166884 460 460 } else { 461 461 minlength = Math.max (minlength, 3); 462 placeholder = T ('Type %s+ chars, then select from list');462 placeholder = T ('Type %s+ letters/numbers, then select'); 463 463 placeholder = placeholder.replace ('%s', minlength); 464 464 } … … 2622 2622 console.log ('[find_matching_terms] request.term:', request.term, entry_metaphone, entry_metaphone.length); 2623 2623 } 2624 textentry_matches[textentry_i_deck] = $.map (current_card_textentry_terms_metaphones[textentry_i_deck], function (term_i) { 2625 if ((entry_metaphone != '' && term_i[1].indexOf (entry_metaphone) === 0) 2626 || term_i[0].toLowerCase ().indexOf (entry) === 0) { 2624 textentry_matches[textentry_i_deck] 2625 = $.map (current_card_textentry_terms_metaphones[textentry_i_deck], 2626 function (term_i) { 2627 var ok_f; 2628 if (entry_metaphone == '') { 2629 2630 // A number, or perhaps other non-alpha characters. Match similar 2631 // terms. 2632 ok_f = term_i[1] == '' 2633 || term_i[0].toLowerCase ().indexOf (entry) === 0; 2634 } else { 2635 ok_f = term_i[1].indexOf (entry_metaphone) === 0 2636 || term_i[0].toLowerCase ().indexOf (entry) === 0; 2637 } 2638 if (ok_f) { 2627 2639 if (debug[6]) { 2628 2640 console.log ('[find_matching_terms] term_i:', term_i);
Note: See TracChangeset
for help on using the changeset viewer.