Making sure moving profile is not stored in browser history.
This commit is contained in:
parent
772f4136b3
commit
029a3109cc
|
|
@ -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;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue