Updates
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<table id="{!! $id !!}" class="{!! $class !!}">
|
||||
<table id="{!! $id !!}" class="{!! $class !!}" style="width:100%">
|
||||
<colgroup>
|
||||
@for ($i = 0; $i < count($columns); $i++)
|
||||
<col class="con{!! $i !!}" />
|
||||
|
||||
92
resources/views/vendor/Chumper/ticket-dept-javascript.blade.php
vendored
Normal file
92
resources/views/vendor/Chumper/ticket-dept-javascript.blade.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
$segments = \Request::segments();
|
||||
$segment = "";
|
||||
foreach($segments as $seg){
|
||||
$segment.="/".$seg;
|
||||
}
|
||||
$dept = $segments[1];
|
||||
$status = $segments[2];
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
var clicked = 1;
|
||||
var create = false;
|
||||
var last = true;
|
||||
var sort = [[6, "desc"]];
|
||||
oTable = myFunction();
|
||||
|
||||
$("select[name=label]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
$("select[name=tag]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
|
||||
function myFunction()
|
||||
{
|
||||
return jQuery('#chumper').dataTable({
|
||||
"sPaginationType": "full_numbers",
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"lengthMenu": [[10, 25, 50, 100, 500], [10, 25, 50, 100, 500]],
|
||||
"ajax": {
|
||||
url: "{{url('filter')}}",
|
||||
data: function (d) {
|
||||
d.labels = $('select[name=label]').val();
|
||||
d.tags = $('select[name=tag]').val();
|
||||
d.segment = "{{$segment}}";
|
||||
d.department = "{{$dept}}";
|
||||
d.status = "{{$status}}";
|
||||
}
|
||||
},
|
||||
"aaSorting": sort,
|
||||
"columnDefs": [
|
||||
{ "searchable": false, "targets": [6,7] },
|
||||
{ "visible": last, "targets": 6 },
|
||||
{"visible": create, "targets":7},
|
||||
],
|
||||
"fnCreatedRow": function (nRow, aData, iDataIndex) {
|
||||
var str = aData[3];
|
||||
if (str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$('a.toggle-vis').on( 'click', function (e)
|
||||
{
|
||||
clicked = clicked+1;
|
||||
if((clicked%2)== 0){
|
||||
last = false;
|
||||
create = true;
|
||||
sort = [[7, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-clock-o" style="color:green;"> </i>{!!Lang::get("lang.last_activity")!!}');
|
||||
} else {
|
||||
last = true;
|
||||
create = false;
|
||||
sort = [[6, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-plus-square-o" style="color:green;"> </i>{!!Lang::get("lang.created-at")!!}');
|
||||
|
||||
}
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
90
resources/views/vendor/Chumper/ticket-javascript.blade.php
vendored
Normal file
90
resources/views/vendor/Chumper/ticket-javascript.blade.php
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
$segments = \Request::segments();
|
||||
$segment = "";
|
||||
foreach($segments as $seg){
|
||||
$segment.="/".$seg;
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
var clicked = 1;
|
||||
var create = false;
|
||||
var last = true;
|
||||
var sort = [[6, "desc"]];
|
||||
oTable = myFunction();
|
||||
$("select[name=label]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
$("select[name=tag]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
|
||||
function myFunction()
|
||||
{
|
||||
return jQuery('#chumper').dataTable({
|
||||
"sDom": "<'row'<'col-xs-6'l><'col-xs-6'f>r>"+
|
||||
"t"+
|
||||
"<'row'<'col-xs-6'i><'col-xs-6'p>>",
|
||||
"sPaginationType": "full_numbers",
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"lengthMenu": [[10, 25, 50, 100, 500], [10, 25, 50, 100, 500]],
|
||||
"ajax": {
|
||||
url: "{{url('filter')}}",
|
||||
data: function (d) {
|
||||
d.labels = $('select[name=label]').val();
|
||||
d.tags = $('select[name=tag]').val();
|
||||
d.segment = "{{$segment}}";
|
||||
}
|
||||
},
|
||||
"aaSorting": sort,
|
||||
"columnDefs": [
|
||||
{ "searchable": false, "targets": [6,7] },
|
||||
{ "visible": last, "targets": 6 },
|
||||
{"visible": create, "targets":7},
|
||||
],
|
||||
"fnCreatedRow": function (nRow, aData, iDataIndex) {
|
||||
var str = aData[3];
|
||||
if (str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$('a.toggle-vis').on( 'click', function (e)
|
||||
{
|
||||
clicked = clicked+1;
|
||||
if((clicked%2)== 0){
|
||||
last = false;
|
||||
create = true;
|
||||
sort = [[7, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-clock-o" style="color:green;"> </i>{!!Lang::get("lang.last_activity")!!}');
|
||||
} else {
|
||||
last = true;
|
||||
create = false;
|
||||
sort = [[6, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-plus-square-o" style="color:green;"> </i>{!!Lang::get("lang.created-at")!!}');
|
||||
|
||||
}
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
109
resources/views/vendor/Chumper/tuser-javascript.blade.php
vendored
Normal file
109
resources/views/vendor/Chumper/tuser-javascript.blade.php
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
$segments = \Request::segments();
|
||||
$segment = "";
|
||||
foreach($segments as $seg){
|
||||
$segment.="/".$seg;
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
var clicked = 1;
|
||||
var create = false;
|
||||
var last = true;
|
||||
var sort = [[6, "desc"]];
|
||||
var status = "Open";
|
||||
oTable = myFunction();
|
||||
$("select[name=label]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
$("select[name=tag]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
|
||||
function myFunction()
|
||||
{
|
||||
return jQuery('#chumper').dataTable({
|
||||
"sDom": "<'row'<'col-xs-6'l><'col-xs-6'f>r>"+
|
||||
"t"+
|
||||
"<'row'<'col-xs-6'i><'col-xs-6'p>>",
|
||||
"sPaginationType": "full_numbers",
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"lengthMenu": [[10, 25, 50, 100, 500], [10, 25, 50, 100, 500]],
|
||||
"ajax": {
|
||||
url: "{{url('filter')}}",
|
||||
data: function (d) {
|
||||
d.labels = $('select[name=label]').val();
|
||||
d.tags = $('select[name=tag]').val();
|
||||
d.segment = "{{$segment}}/"+status;
|
||||
}
|
||||
},
|
||||
"aaSorting": sort,
|
||||
"columnDefs": [
|
||||
{ "searchable": false, "targets": [6,7] },
|
||||
{ "visible": last, "targets": 6 },
|
||||
{"visible": create, "targets":7},
|
||||
],
|
||||
"fnCreatedRow": function (nRow, aData, iDataIndex) {
|
||||
var str = aData[3];
|
||||
if (str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$('a.toggle-vis').on( 'click', function (e)
|
||||
{
|
||||
clicked = clicked+1;
|
||||
if((clicked%2)== 0){
|
||||
last = false;
|
||||
create = true;
|
||||
sort = [[7, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-clock-o" style="color:green;"> </i>{!!Lang::get("lang.last_activity")!!}');
|
||||
} else {
|
||||
last = true;
|
||||
create = false;
|
||||
sort = [[6, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-plus-square-o" style="color:green;"> </i>{!!Lang::get("lang.created-at")!!}');
|
||||
|
||||
}
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
|
||||
$('#open_tab').on('click', function(){
|
||||
redrawTable("Open");
|
||||
});
|
||||
|
||||
$('#closed_tab').on('click', function(){
|
||||
redrawTable("Closed");
|
||||
});
|
||||
|
||||
$('#deleted_tab').on('click', function(){
|
||||
redrawTable("Deleted");
|
||||
});
|
||||
|
||||
function redrawTable(showTicket) {
|
||||
status = showTicket;
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
47
resources/views/vendor/Chumper/user-javascript.blade.php
vendored
Normal file
47
resources/views/vendor/Chumper/user-javascript.blade.php
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
$segments = \Request::segments();
|
||||
$segment = "";
|
||||
foreach($segments as $seg){
|
||||
$segment.="/".$seg;
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
var show = 'active';
|
||||
oTable = myFunction(show);
|
||||
|
||||
$("select[name=type_of_profile]").change(function () {
|
||||
//alert($('select[name=type_of_profile]').val());
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
|
||||
function myFunction(show)
|
||||
{
|
||||
return jQuery('#chumper').dataTable({
|
||||
"sPaginationType": "full_numbers",
|
||||
"bProcessing": true,
|
||||
"ajax": {
|
||||
url: "{{url('user-list')}}",
|
||||
data: function (d) {
|
||||
d.profiletype = show;
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
$('.active').on('click', function(){
|
||||
show = 'active';
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction(show);
|
||||
});
|
||||
|
||||
$('.inactive').on('click', function(){
|
||||
show = 'inactive';
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction(show);
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user