mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -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 () {
|
||||
let searchParams = new URLSearchParams(window.location.search);
|
||||
var sort_by = searchParams.get('sort_by');
|
||||
@ -37,7 +15,8 @@ $('.sort-by-item').on('click', function () {
|
||||
} else {
|
||||
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);
|
||||
$(this).hide();
|
||||
});
|
||||
|
||||
$('#save-search').on('click', function () {
|
||||
filter.checkUser();
|
||||
});
|
||||
});
|
||||
|
||||
$('.ad-info-right-bar-video').tooltip({
|
||||
|
||||
@ -80,7 +80,7 @@
|
||||
"visiosoft/integer-field_type": "~2.1.0",
|
||||
"guzzlehttp/guzzle": "~6.3.3"
|
||||
},
|
||||
"replace" : {
|
||||
"replace": {
|
||||
"anomaly/streams-platform": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
@ -92,16 +92,20 @@
|
||||
"symfony/dom-crawler": "3.1.*",
|
||||
"anomaly/installer-module": "~2.3.0"
|
||||
},
|
||||
"repositories": [
|
||||
{
|
||||
"repositories": {
|
||||
"0": {
|
||||
"type": "composer",
|
||||
"url": "https://packages.pyrocms.com"
|
||||
},
|
||||
{
|
||||
"1": {
|
||||
"type": "composer",
|
||||
"url": "https://community.pyrocms.com"
|
||||
},
|
||||
"repo-name": {
|
||||
"type": "composer",
|
||||
"url": "https://repo.openclassify.com/satis"
|
||||
}
|
||||
],
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"database"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user