Merge pull request #909 from Safelite/revert-903-feature/CSR-989
Revert "Added check for previous click in footer forward and back button / link"
This commit is contained in:
commit
4de6827dd5
1 changed files with 2 additions and 23 deletions
|
|
@ -47,8 +47,6 @@ export default {
|
||||||
return {
|
return {
|
||||||
paddingHeight: 0,
|
paddingHeight: 0,
|
||||||
customButtontext: "",
|
customButtontext: "",
|
||||||
forwardClicked: false,
|
|
||||||
backClicked: false,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -72,15 +70,6 @@ export default {
|
||||||
? this.customButtontext
|
? this.customButtontext
|
||||||
: this.getCmsContent(this.cmsWidgetName, "ForwardButtonText");
|
: this.getCmsContent(this.cmsWidgetName, "ForwardButtonText");
|
||||||
},
|
},
|
||||||
navigationButtonClicked: {
|
|
||||||
get: function () {
|
|
||||||
return this.forwardClicked || this.backClicked;
|
|
||||||
},
|
|
||||||
set: function (newValue) {
|
|
||||||
this.forwardClicked = newValue;
|
|
||||||
this.backClicked = newValue;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onResize() {
|
onResize() {
|
||||||
|
|
@ -91,29 +80,19 @@ export default {
|
||||||
},
|
},
|
||||||
removeLoader() {
|
removeLoader() {
|
||||||
this.$refs.buttonMain.removeLoader();
|
this.$refs.buttonMain.removeLoader();
|
||||||
|
|
||||||
document.onkeydown = function (e) {
|
document.onkeydown = function (e) {
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.navigationButtonClicked = false;
|
|
||||||
},
|
},
|
||||||
buttonClick() {
|
buttonClick() {
|
||||||
//prevent keyboard input after button click
|
//prevent keyboard input after button click
|
||||||
document.onkeydown = function (e) {
|
document.onkeydown = function (e) {
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
this.$emit("ForwardClicked");
|
||||||
if (!this.navigationButtonClicked) {
|
|
||||||
this.$emit("ForwardClicked");
|
|
||||||
this.forwardClicked = true;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
linkClick() {
|
linkClick() {
|
||||||
if (!this.navigationButtonClicked) {
|
this.$emit("BackClicked");
|
||||||
this.$emit("BackClicked");
|
|
||||||
this.backClicked = true;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue