* fixed ajaxform.
This commit is contained in:
@@ -29,7 +29,7 @@ js::set('refresh', $lang->refresh);
|
||||
<strong><small class='text-muted'><?php echo html::icon($lang->icons['create']);?></small> <?php echo $lang->bug->create;?></strong>
|
||||
</div>
|
||||
</div>
|
||||
<form class='form-condensed' method='post' enctype='multipart/form-data' id='dataform' class='ajaxForm'>
|
||||
<form class='form-condensed' method='post' enctype='multipart/form-data' id='dataform' data-type='ajax'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-110px'><?php echo $lang->bug->lblProductAndModule;?></th>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<strong><small class='text-muted'><?php echo html::icon($lang->icons['create']);?></small> <?php echo $lang->story->create;?></strong>
|
||||
</div>
|
||||
</div>
|
||||
<form class='form-condensed' method='post' enctype='multipart/form-data' id='dataform' class='ajaxForm'>
|
||||
<form class='form-condensed' method='post' enctype='multipart/form-data' id='dataform' data-type='ajax'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-80px'><?php echo $lang->story->product;?></th>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<strong><small class='text-muted'><?php echo html::icon($lang->icons['create']);?></small> <?php echo $lang->task->create;?></strong>
|
||||
</div>
|
||||
</div>
|
||||
<form class='form-condensed' method='post' enctype='multipart/form-data' id='dataform' class='ajaxForm'>
|
||||
<form class='form-condensed' method='post' enctype='multipart/form-data' id='dataform' data-type='ajax'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-100px'><?php echo $lang->task->project;?></th>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<strong><small class='text-muted'><?php echo html::icon($lang->icons['create']);?></small> <?php echo $lang->testcase->create;?></strong>
|
||||
</div>
|
||||
</div>
|
||||
<form class='form-condensed' method='post' enctype='multipart/form-data' id='dataform' class='ajaxForm'>
|
||||
<form class='form-condensed' method='post' enctype='multipart/form-data' id='dataform' data-type='ajax'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-80px'><?php echo $lang->testcase->lblProductAndModule;?></th>
|
||||
|
||||
Vendored
+4
-3
@@ -54,7 +54,7 @@ $.extend(
|
||||
var i = triggered.push(false);
|
||||
|
||||
/* Create the error message. */
|
||||
var errorMSG = '<div id="' + errorLabel + '" class="text-error red">';
|
||||
var errorMSG = '<div id="' + errorLabel + '" class="text-danger red">';
|
||||
errorMSG += $.type(value) == 'string' ? value : value.join(';');
|
||||
errorMSG += '</div>';
|
||||
|
||||
@@ -62,7 +62,7 @@ $.extend(
|
||||
$('#' + errorLabel).remove();
|
||||
$(errorOBJ).parent().append(errorMSG);
|
||||
$(errorOBJ).css('margin-bottom', 0);
|
||||
$(errorOBJ).css('border-color','#953B39')
|
||||
$(errorOBJ).css('border-color','#D2322D');
|
||||
|
||||
$(errorOBJ).bind('keydown mousedown', function()
|
||||
{
|
||||
@@ -113,5 +113,6 @@ $.extend(
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$.ajaxForm('.ajaxForm')
|
||||
$.ajaxForm('.ajaxForm');
|
||||
$.ajaxForm("[data-type='ajax']");
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user