* adjust required style.
This commit is contained in:
@@ -23,27 +23,27 @@
|
||||
<tr>
|
||||
<th class='rowhead w-80px'><?php echo $lang->cron->m;?></th>
|
||||
<td class='w-p20'><?php echo html::input('m', '', "class='form-control'")?></td>
|
||||
<td class='pdl-15'><?php echo $lang->cron->notice->m;?></td>
|
||||
<td><?php echo $lang->cron->notice->m;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->h;?></th>
|
||||
<td><?php echo html::input('h', '', "class='form-control'")?></td>
|
||||
<td class='pdl-15'><?php echo $lang->cron->notice->h;?></td>
|
||||
<td><?php echo $lang->cron->notice->h;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->dom;?></th>
|
||||
<td><?php echo html::input('dom', '', "class='form-control'")?></td>
|
||||
<td class='pdl-15'><?php echo $lang->cron->notice->dom;?></td>
|
||||
<td><?php echo $lang->cron->notice->dom;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->mon;?></th>
|
||||
<td><?php echo html::input('mon', '', "class='form-control'")?></td>
|
||||
<td class='pdl-15'><?php echo $lang->cron->notice->mon;?></td>
|
||||
<td><?php echo $lang->cron->notice->mon;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->dow;?></th>
|
||||
<td><?php echo html::input('dow', '', "class='form-control'")?></td>
|
||||
<td class='pdl-15'><?php echo $lang->cron->notice->dow;?></td>
|
||||
<td><?php echo $lang->cron->notice->dow;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->command;?></th>
|
||||
@@ -65,4 +65,3 @@
|
||||
</form>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
|
||||
@@ -23,27 +23,27 @@
|
||||
<tr>
|
||||
<th class='rowhead w-80px'><?php echo $lang->cron->m;?></th>
|
||||
<td class='w-p20'><?php echo html::input('m', $cron->m, "class='form-control'")?></td>
|
||||
<td class='pdl-15'><?php echo $lang->cron->notice->m;?></td>
|
||||
<td><?php echo $lang->cron->notice->m;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->h;?></th>
|
||||
<td><?php echo html::input('h', $cron->h, "class='form-control'")?></td>
|
||||
<td class='pdl-15'><?php echo $lang->cron->notice->h;?></td>
|
||||
<td><?php echo $lang->cron->notice->h;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->dom;?></th>
|
||||
<td><?php echo html::input('dom', $cron->dom, "class='form-control'")?></td>
|
||||
<td class='pdl-15'><?php echo $lang->cron->notice->dom;?></td>
|
||||
<td><?php echo $lang->cron->notice->dom;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->mon;?></th>
|
||||
<td><?php echo html::input('mon', $cron->mon, "class='form-control'")?></td>
|
||||
<td class='pdl-15'><?php echo $lang->cron->notice->mon;?></td>
|
||||
<td><?php echo $lang->cron->notice->mon;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->dow;?></th>
|
||||
<td><?php echo html::input('dow', $cron->dow, "class='form-control'")?></td>
|
||||
<td class='pdl-15'><?php echo $lang->cron->notice->dow;?></td>
|
||||
<td><?php echo $lang->cron->notice->dow;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->command;?></th>
|
||||
@@ -65,4 +65,3 @@
|
||||
</form>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
|
||||
+9
-6
@@ -284,14 +284,17 @@ function setPing()
|
||||
*/
|
||||
function setRequiredFields()
|
||||
{
|
||||
if(!config.requiredFields) return false;
|
||||
requiredFields = config.requiredFields.split(',');
|
||||
for(i = 0; i < requiredFields.length; i++)
|
||||
if(config.requiredFields)
|
||||
{
|
||||
$('#' + requiredFields[i]).closest('td,th').prepend("<div class='required required-wrapper'></div>");
|
||||
var colEle = $('#' + requiredFields[i]).closest('[class*="col-"]');
|
||||
if(colEle.parent().hasClass('form-group')) colEle.addClass('required');
|
||||
requiredFields = config.requiredFields.split(',');
|
||||
for(i = 0; i < requiredFields.length; i++)
|
||||
{
|
||||
$('#' + requiredFields[i]).closest('td,th').prepend("<div class='required required-wrapper'></div>");
|
||||
var colEle = $('#' + requiredFields[i]).closest('[class*="col-"]');
|
||||
if(colEle.parent().hasClass('form-group')) colEle.addClass('required');
|
||||
}
|
||||
}
|
||||
$('.required').closest('td,th').next().css('padding-left', '15px');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user