Index: themes/base_files/scss/_tiki-miscellaneous_global.scss
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- themes/base_files/scss/_tiki-miscellaneous_global.scss	(revision Local Version)
+++ themes/base_files/scss/_tiki-miscellaneous_global.scss	(revision Shelved Version)
@@ -346,15 +346,6 @@
 	display: none;
 }
 
-// ColorBox
-// #cboxTitle {
-// 	background-color: $body-bg;
-// }
-//
-// #captchaImg {
-// 	border: 1px solid $panel-default-border;
-// }
-
 /* fix for lists with empty dl items, e.g. tracker items
  * thanks hayksaakian on https://github.com/twbs/bootstrap/issues/4062
  * to be removed when we update to bs 3.2
Index: themes/base_files/scss/_tiki-selectors.scss
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- themes/base_files/scss/_tiki-selectors.scss	(revision Local Version)
+++ themes/base_files/scss/_tiki-selectors.scss	(revision Shelved Version)
@@ -429,7 +429,7 @@
 	background-color: $body-bg;
 }
 
-#captchaImg {
+.captcha-img {
 	border: 1px solid $border-color;
 }
 
Index: templates/antibot.tpl
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- templates/antibot.tpl	(revision Local Version)
+++ templates/antibot.tpl	(revision Shelved Version)
@@ -33,18 +33,18 @@
 			</div>
 		{else}
 			{* Default captcha *}
-			<input type="hidden" name="captcha[id]" id="captchaId" value="{$captchalib->generate()}">
+			<input type="hidden" name="captcha[id]" value="{$captchalib->generate()}">
 			<div class="form-group row">
 				<label class="col-form-label {$labelclass}" for="antibotcode">{tr}Enter the code below{/tr}{if $showmandatory eq 'y' && $form ne 'register'} <strong class='mandatory_star text-danger tips' title=":{tr}This field is mandatory{/tr}">*</strong>{/if}</label>
 				<div class="{if !empty($inputclass)}{$inputclass}{else}col-md-8 col-sm-9{/if}">
-					<input class="form-control" type="text" maxlength="8" name="captcha[input]" id="antibotcode">
+					<input class="form-control" type="text" maxlength="8" name="captcha[input]">
 				</div>
 			</div>
 			<div class="clearfix visible-md-block"></div>
 			<div class="form-group row">
 				<div class="{$captchaclass}">
 					{if $captchalib->type eq 'default'}
-						<img id="captchaImg" src="{$captchalib->getPath()}" alt="{tr}Anti-Bot verification code image{/tr}" height="50">
+						<img class="captcha-img" src="{$captchalib->getPath()}" alt="{tr}Anti-Bot verification code image{/tr}" height="50">
 					{else}
 						{* dumb captcha *}
 						{$captchalib->render()}
@@ -52,7 +52,7 @@
 				</div>
 				{if $captchalib->type eq 'default'}
 					<div class="col-sm-3">
-						{button _id='captchaRegenerate' _class='' href='#antibot' _text="{tr}Try another code{/tr}" _icon_name="refresh" _onclick="generateCaptcha();return false;"}
+						{button _class='' href='#antibot' _text="{tr}Try another code{/tr}" _icon_name="refresh" _onclick="generateCaptcha(this);return false;"}
 					</div>
 				{/if}
 			</div>
@@ -60,14 +60,16 @@
 	</div>
 
 	{jq rank=1}
-		function antibotVerification(element, rule) {
+		function antibotVerification($element, rule) {
 			if (!jqueryTiki.validate) return;
 
-			var form = $(".antibot").parents('form');
-			if (!form.data("validator")) {
-				form.validate({});
-			}
-			element.rules( "add", rule);
+			$element.each(function () {
+				var form = $(this).closest('form');
+				if (! form.data("validator")) {
+					form.validate({});
+				}
+				$(this).rules( "add", rule);
+			});
 		}
 	{/jq}
 
@@ -108,7 +110,7 @@
 		{/if}
 	{else}
 		{jq rank=1}
-			antibotVerification($("#antibotcode"), {
+			antibotVerification($('input[name="captcha[input]"]'), {
 				required: true
 			});
 		{/jq}
Index: lib/captcha/captchalib.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- lib/captcha/captchalib.js	(revision Local Version)
+++ lib/captcha/captchalib.js	(revision Shelved Version)
@@ -1,17 +1,18 @@
 //$Id$
 
-function generateCaptcha() {
-	jQuery('#captchaImg').attr('src', 'img/spinner.gif').show();
-	jQuery('body').css('cursor', 'progress');
-	jQuery.ajax({
+function generateCaptcha(button) {
+	var $form = $(button).closest("form");
+	$('.captcha-img', $form).attr('src', 'img/spinner.gif').show();
+	$('body').css('cursor', 'progress');
+	$.ajax({
 		url: 'antibot.php',
 		dataType: 'json',
 		success: function(data) {
-			jQuery('#captchaImg').attr('src', data.captchaImgPath);
-			jQuery('#captchaId').attr('value', data.captchaId);
-			jQuery('body').css('cursor', 'auto');
+			$('.captcha-img', $form).attr('src', data.captchaImgPath);
+			$('input[name="captcha[id]"]', $form).attr('value', data.captchaId);
+			$('body').css('cursor', 'auto');
 		}
 	});
-	$("#antibotcode").focus();
+	$('input[name="captcha[input]"]').focus();
 	return false;
 }
