* Code for langItem refactors.
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
.h-32 {height: 32px;}
|
||||
.py-6 {padding: 6px 0;}
|
||||
.my-12 {margin: 12px 0;}
|
||||
.ml-20 {margin-left: 20px;}
|
||||
.title {font-size: 13px; color: #313C52; font-weight: 700; height: 40px; text-align: center;}
|
||||
|
||||
/* side-left */
|
||||
.main-content > .side-left {flex: 0 0 160px; margin-left: 64px; width: 160px;}
|
||||
.main-content > .side-left {flex: 0 0 160px; margin-left: 64px;}
|
||||
.label-list {background: #F8F8F8; padding: 5px 0;}
|
||||
.label-list > .input-label {display: flex; align-items: center; cursor: pointer; padding-left: 40px;}
|
||||
|
||||
@@ -14,3 +15,6 @@
|
||||
.main-content > .side-right > .input-list {padding: 5px 0;}
|
||||
.main-content > .side-right > .input-list > .input-control {position: relative;}
|
||||
.main-content > .side-right > .input-list > .input-control > i.icon {position: absolute; font-size: 25px; left: -40px; top: 3px;}
|
||||
|
||||
/* bottom-btn */
|
||||
.bottom-btn {display: flex; align-items: center; background: #fff;padding-left: 150px; padding-bottom: 20px;}
|
||||
|
||||
@@ -9,17 +9,19 @@ $(function()
|
||||
removeActive(event.target.id);
|
||||
});
|
||||
|
||||
$('.label-list').on('click', '.input-label', function(e)
|
||||
$('.label-list > .input-label').on('click', function(e)
|
||||
{
|
||||
var clearId = $('.label-list > .text-primary').attr('labelid');
|
||||
var clickId = $(e.target).attr('labelid');
|
||||
if(clearId && clearId != clickId) removeActive(clearId);
|
||||
var clickId = $(this).attr('labelid');
|
||||
if(clearId && clearId !== clickId)
|
||||
{
|
||||
removeActive(clearId);
|
||||
};
|
||||
|
||||
if(clickId && clickId != clearId)
|
||||
{
|
||||
addActive(clickId);
|
||||
$('#' + clickId).focus();
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
function addActive(id)
|
||||
@@ -32,6 +34,7 @@ $(function()
|
||||
{
|
||||
$('[labelid=' + id + ']').removeClass('text-primary');
|
||||
$('[iconid=' + id + ']').addClass('hidden');
|
||||
$('#' + id).blur();
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
|
||||
@@ -48,4 +48,9 @@
|
||||
<div class="side-main"></div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="bottom-btn">
|
||||
<?php echo html::submitButton(); ?>
|
||||
<button id="reset" class="btn btn-wide ml-20"><?php echo $lang->restore?> </button>
|
||||
</div>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
Reference in New Issue
Block a user