mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
remove old js
This commit is contained in:
parent
5af57723f7
commit
0641db14f5
@ -1,25 +1,3 @@
|
|||||||
const filter = {};
|
|
||||||
|
|
||||||
filter.checkUser = () => {
|
|
||||||
$.ajax({
|
|
||||||
type: 'get',
|
|
||||||
url: '/check_user',
|
|
||||||
success: function (response) {
|
|
||||||
if (response.success == true) {
|
|
||||||
$('#search-fav-modal').modal('toggle');
|
|
||||||
} else {
|
|
||||||
window.location.replace("/login");
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error: function (err) {
|
|
||||||
reject(Error("It broke"));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$('.sort-by-item').on('click', function () {
|
$('.sort-by-item').on('click', function () {
|
||||||
let searchParams = new URLSearchParams(window.location.search);
|
let searchParams = new URLSearchParams(window.location.search);
|
||||||
var sort_by = searchParams.get('sort_by');
|
var sort_by = searchParams.get('sort_by');
|
||||||
@ -37,7 +15,8 @@ $('.sort-by-item').on('click', function () {
|
|||||||
} else {
|
} else {
|
||||||
goURL = url + "&sort_by=" + value;
|
goURL = url + "&sort_by=" + value;
|
||||||
}
|
}
|
||||||
window.location.replace(goURL);
|
console.log(goURL)
|
||||||
|
window.location.href = goURL;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@ -151,10 +130,6 @@ $(document).ready(function () {
|
|||||||
$(value).prev('input').prop('checked', false);
|
$(value).prev('input').prop('checked', false);
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#save-search').on('click', function () {
|
|
||||||
filter.checkUser();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.ad-info-right-bar-video').tooltip({
|
$('.ad-info-right-bar-video').tooltip({
|
||||||
|
|||||||
@ -80,7 +80,7 @@
|
|||||||
"visiosoft/integer-field_type": "~2.1.0",
|
"visiosoft/integer-field_type": "~2.1.0",
|
||||||
"guzzlehttp/guzzle": "~6.3.3"
|
"guzzlehttp/guzzle": "~6.3.3"
|
||||||
},
|
},
|
||||||
"replace" : {
|
"replace": {
|
||||||
"anomaly/streams-platform": "*"
|
"anomaly/streams-platform": "*"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
@ -92,16 +92,20 @@
|
|||||||
"symfony/dom-crawler": "3.1.*",
|
"symfony/dom-crawler": "3.1.*",
|
||||||
"anomaly/installer-module": "~2.3.0"
|
"anomaly/installer-module": "~2.3.0"
|
||||||
},
|
},
|
||||||
"repositories": [
|
"repositories": {
|
||||||
{
|
"0": {
|
||||||
"type": "composer",
|
"type": "composer",
|
||||||
"url": "https://packages.pyrocms.com"
|
"url": "https://packages.pyrocms.com"
|
||||||
},
|
},
|
||||||
{
|
"1": {
|
||||||
"type": "composer",
|
"type": "composer",
|
||||||
"url": "https://community.pyrocms.com"
|
"url": "https://community.pyrocms.com"
|
||||||
|
},
|
||||||
|
"repo-name": {
|
||||||
|
"type": "composer",
|
||||||
|
"url": "https://repo.openclassify.com/satis"
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": [
|
"classmap": [
|
||||||
"database"
|
"database"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user