Skip to content
Browse files

Merge pull request #118 from maranda/master

Fixed JREs into the field detection code.
  • Loading branch information...
2 parents 485dd99 + bab977f commit 2e9a89b3613f565b176c7c918e6b190a0125dc54 vanaryon committed Jul 9, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/dataform.js
View
6 js/dataform.js
@@ -7,7 +7,7 @@ These are the dataform JS scripts for Jappix
License: AGPL
Author: Vanaryon
-Last revision: 10/04/12
+Last revision: 09/07/12
*/
@@ -411,8 +411,8 @@ function handleDataFormContent(iq, type) {
var sDone;
var bName;
var bCountry;
- sDone = false; bName = $(this).find('field').filter(function (i) { if ($(this).attr("var").match(/(fn|[^n][^i][^c][^k]name)/i) && sDone != true) { sDone = true; return $(this) } }).children('value:first').text();
- sDone = false; bCountry = $(this).find('field').filter(function (i) { if ($(this).attr("var").match(/(ctry|country.*)/i) && sDone != true) { sDone = true; return $(this) } }).children('value:first').text();
+ sDone = false; bName = $(this).find('field').filter(function (i) { if ($(this).attr("var").match(/^(fn|[^n][^i][^c][^k]name)$/gi) && sDone != true) { sDone = true; return $(this) } }).children('value:first').text();
+ sDone = false; bCountry = $(this).find('field').filter(function (i) { if ($(this).attr("var").match(/^(ctry|country.*)$/gi) && sDone != true) { sDone = true; return $(this) } }).children('value:first').text();
var bXID = $(this).find('field[var=jid] value:first').text();
var dName = bName;

0 comments on commit 2e9a89b

Please sign in to comment.
Something went wrong with that request. Please try again.