* fixed ajaxform.

This commit is contained in:
Catouse
2014-04-08 10:40:21 +08:00
parent 4b266ae8e7
commit 0a4b2c07f1
5 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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>
+4 -3
View File
@@ -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']");
})