fixed #476
This commit is contained in:
parent
104451a4ba
commit
8058fadd73
8
public/css/app.css
vendored
8
public/css/app.css
vendored
@ -356,7 +356,7 @@ div.required .control-label:not(span):after, td.required:after {
|
|||||||
width: 150px;
|
width: 150px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ajax-search {
|
.live-search {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -369,16 +369,16 @@ div.required .control-label:not(span):after, td.required:after {
|
|||||||
background-color : #00A65A !important;
|
background-color : #00A65A !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#result-search li a:hover .ajax-search .name {
|
#result-search li a:hover .live-search .name {
|
||||||
color: #FFFFFF !important;
|
color: #FFFFFF !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ajax-search .name {
|
.live-search .name {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ajax-search .type {
|
.live-search .type {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
12
public/js/app.js
vendored
12
public/js/app.js
vendored
@ -23,11 +23,11 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
// Show
|
// Show
|
||||||
this.show = function () {
|
this.show = function () {
|
||||||
var pos = $('#search').position();
|
var pos = $('#live-search').position();
|
||||||
|
|
||||||
$(this).parent().parent().siblings('ul.dropdown-menu').css({
|
$(this).parent().parent().siblings('ul.dropdown-menu').css({
|
||||||
top : pos.top + $('#search').height(),
|
top : pos.top + $('#live-search').height(),
|
||||||
width: $('#search').width(),
|
width: $('#live-search').width(),
|
||||||
left: pos.left
|
left: pos.left
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ $(document).ready(function () {
|
|||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
html += '<li data-value="' + json[i]['type'] + '-' + json[i]['id'] + '">';
|
html += '<li data-value="' + json[i]['type'] + '-' + json[i]['id'] + '">';
|
||||||
html += ' <a href="' + json[i]['href'] + '">';
|
html += ' <a href="' + json[i]['href'] + '">';
|
||||||
html += ' <div class="ajax-search">';
|
html += ' <div class="live-search">';
|
||||||
html += ' <div class="row">';
|
html += ' <div class="row">';
|
||||||
html += ' <div class="name" style="color: ' + json[i]['color'] + ';">' + json[i]['name'] + '</div>';
|
html += ' <div class="name" style="color: ' + json[i]['color'] + ';">' + json[i]['name'] + '</div>';
|
||||||
html += ' <span class="type">' + json[i]['type'] + '</span>';
|
html += ' <span class="type">' + json[i]['type'] + '</span>';
|
||||||
@ -87,7 +87,7 @@ $(document).ready(function () {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$('input[name=\'search\']').liveSearch({
|
$('input[name=\'live-search\']').liveSearch({
|
||||||
'source': function (request, response) {
|
'source': function (request, response) {
|
||||||
if (request != '' && request.length > 2) {
|
if (request != '' && request.length > 2) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@ -108,7 +108,7 @@ $(document).ready(function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$('#search > .dropdown-menu').hide();
|
$('#live-search > .dropdown-menu').hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -21,13 +21,13 @@
|
|||||||
<link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/dist/css/skins/skin-green-light.min.css') }}">
|
<link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/dist/css/skins/skin-green-light.min.css') }}">
|
||||||
@else
|
@else
|
||||||
<link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/dist/css/skins/skin-black.min.css') }}">
|
<link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/dist/css/skins/skin-black.min.css') }}">
|
||||||
<link rel="stylesheet" href="{{ asset('public/css/skin-black.css?v=1.2') }}">
|
<link rel="stylesheet" href="{{ asset('public/css/skin-black.css?v=' . version('short')) }}">
|
||||||
@endif
|
@endif
|
||||||
<!-- Select2 -->
|
<!-- Select2 -->
|
||||||
<link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/plugins/select2/select2.min.css') }}">
|
<link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/plugins/select2/select2.min.css') }}">
|
||||||
<!-- App style -->
|
<!-- App style -->
|
||||||
<link rel="stylesheet" href="{{ asset('public/css/app.css?v=1.2.12') }}">
|
<link rel="stylesheet" href="{{ asset('public/css/app.css?v=' . version('short')) }}">
|
||||||
<link rel="stylesheet" href="{{ asset('public/css/akaunting-green.css?v=1.2') }}">
|
<link rel="stylesheet" href="{{ asset('public/css/akaunting-green.css?v=' . version('short')) }}">
|
||||||
|
|
||||||
<link rel="shortcut icon" href="{{ asset('public/img/favicon.ico') }}">
|
<link rel="shortcut icon" href="{{ asset('public/img/favicon.ico') }}">
|
||||||
|
|
||||||
@ -57,7 +57,7 @@
|
|||||||
<!-- Mask Money -->
|
<!-- Mask Money -->
|
||||||
<script src="{{ asset('public/js/jquery/jquery.maskMoney.js') }}"></script>
|
<script src="{{ asset('public/js/jquery/jquery.maskMoney.js') }}"></script>
|
||||||
|
|
||||||
<script src="{{ asset('public/js/app.js?v=1.0') }}"></script>
|
<script src="{{ asset('public/js/app.js?v=' . version('short')) }}"></script>
|
||||||
|
|
||||||
<script type="text/javascript"><!--
|
<script type="text/javascript"><!--
|
||||||
var url_search = '{{ url("common/search/search") }}';
|
var url_search = '{{ url("common/search/search") }}';
|
||||||
|
@ -26,10 +26,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- search form -->
|
<!-- search form -->
|
||||||
<form action="#" method="get" id="form-search" class="sidebar-form">
|
<form action="#" method="get" id="form-search" class="sidebar-form">
|
||||||
<div id="search" class="input-group">
|
<div id="live-search" class="input-group">
|
||||||
<input type="text" name="search" value="<?php //echo $search; ?>" id="input-search" class="form-control" placeholder="Search...">
|
<input type="text" name="live-search" value="<?php //echo $search; ?>" id="input-search" class="form-control" placeholder="Search...">
|
||||||
<span class="input-group-btn">
|
<span class="input-group-btn">
|
||||||
<button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i></button>
|
<button type="submit" name="live-search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i></button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user