Making sure moving profile is not stored in browser history.

This commit is contained in:
Marat Fayzullin 2024-03-24 15:19:57 -04:00
parent 772f4136b3
commit 029a3109cc
1 changed files with 2 additions and 2 deletions

View File

@ -1,12 +1,12 @@
$.fn.profiles = function() { $.fn.profiles = function() {
this.each(function() { this.each(function() {
$(this).on('click', '.move-down', function(e) { $(this).on('click', '.move-down', function(e) {
window.location = document.URL.replace(/(\/sdr\/[^\/]+)\/profile\/([^\/]+)$/, '$1/moveprofiledown/$2'); location.replace(document.URL.replace(/(\/sdr\/[^\/]+)\/profile\/([^\/]+)$/, '$1/moveprofiledown/$2'));
return false; return false;
}); });
$(this).on('click', '.move-up', function(e) { $(this).on('click', '.move-up', function(e) {
window.location = document.URL.replace(/(\/sdr\/[^\/]+)\/profile\/([^\/]+)$/, '$1/moveprofileup/$2'); location.replace(document.URL.replace(/(\/sdr\/[^\/]+)\/profile\/([^\/]+)$/, '$1/moveprofileup/$2'));
return false; return false;
}); });
}); });