| Line 378... |
Line 378... |
| 378 |
// Pagination
|
378 |
// Pagination
|
| 379 |
function paginationSetup() {
|
379 |
function paginationSetup() {
|
| 380 |
if ($.fn.paginate && $.fn.modal && $.fn.tooltip && typeof Popper !== "undefined") {
|
380 |
if ($.fn.paginate && $.fn.modal && $.fn.tooltip && typeof Popper !== "undefined") {
|
| 381 |
if (document.getElementById("discogsDeck") !== null) {
|
381 |
if (document.getElementById("discogsDeck") !== null) {
|
| 382 |
$("[id^=masterModal]").modal("hide");
|
382 |
$("[id^=masterModal]").modal("hide");
|
| - |
|
383 |
$("[id^=videoModal]").modal("hide");
|
| 383 |
$('#discogsDeck').paginate({
|
384 |
$('#discogsDeck').paginate({
|
| 384 |
paginateElement: '.card',
|
385 |
paginateElement: '.card',
|
| 385 |
elementsPerPage: paginationPerPage(),
|
386 |
elementsPerPage: paginationPerPage(),
|
| 386 |
effect: 'default',
|
387 |
effect: 'default',
|
| 387 |
firstButtonText: '<i class="material-icons material-text">first_page</i>',
|
388 |
firstButtonText: '<i class="material-icons material-text">first_page</i>',
|
| Line 461... |
Line 462... |
| 461 |
}).on('mousemove', '.x', function( e ){
|
462 |
}).on('mousemove', '.x', function( e ){
|
| 462 |
$(this)[tog(this.offsetWidth-18 < e.clientX-this.getBoundingClientRect().left)]('onX');
|
463 |
$(this)[tog(this.offsetWidth-18 < e.clientX-this.getBoundingClientRect().left)]('onX');
|
| 463 |
}).on('touchstart click', '.onX', function( ev ){
|
464 |
}).on('touchstart click', '.onX', function( ev ){
|
| 464 |
ev.preventDefault();
|
465 |
ev.preventDefault();
|
| 465 |
$(this).removeClass('x onX').val('').change();
|
466 |
$(this).removeClass('x onX').val('').change();
|
| - |
|
467 |
if (ev.target.id == "searchTerm-flexdatalist") {
|
| - |
|
468 |
$('#' + ev.target.id).trigger("focusin");
|
| - |
|
469 |
} else {
|
| - |
|
470 |
$(this).trigger("keyup");
|
| - |
|
471 |
}
|
| 466 |
}).on('shown.bs.modal', function(e){
|
472 |
}).on('shown.bs.modal', function(e){
|
| 467 |
$('#' + e.target.id + ' input.clearable').trigger("input");
|
473 |
$('#' + e.target.id + ' input.clearable').trigger("input");
|
| 468 |
});
|
474 |
});
|
| 469 |
|
475 |
|
| 470 |
$('input.clearable').trigger("change");
|
476 |
$('input.clearable').trigger("change");
|