mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
fixed bug with infinity notification
This commit is contained in:
@@ -31,23 +31,5 @@
|
|||||||
<!-- built files will be auto injected -->
|
<!-- built files will be auto injected -->
|
||||||
</body>
|
</body>
|
||||||
<script src='https://www.google.com/recaptcha/api.js'></script>
|
<script src='https://www.google.com/recaptcha/api.js'></script>
|
||||||
<script>
|
|
||||||
|
|
||||||
function get_action(form) {
|
|
||||||
var v = grecaptcha.getResponse();
|
|
||||||
console.log(v);
|
|
||||||
if (v.length == 0) {
|
|
||||||
document.getElementById('captcha').innerHTML = "You can't leave Captcha Code empty";
|
|
||||||
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
|
|
||||||
document.getElementById('captcha').innerHTML = "Captcha completed";
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<payments-modal v-if="openModal" @notifacetionmoney="NotificationMethod" @closemodal="openModal = false" :payments="payments"></payments-modal>
|
<payments-modal v-if="openModal" @notifacetionmoney="NotificationEventListener" @closemodal="openModal = false" :payments="payments"></payments-modal>
|
||||||
<notiicationwindow-component @notificationremove="NotificationMethod" :notification="notification"></notiicationwindow-component>
|
<notiicationwindow-component @notificationremove="NotificationMethod" :notification="notification"></notiicationwindow-component>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -112,9 +112,12 @@ export default {
|
|||||||
this.openModal = true
|
this.openModal = true
|
||||||
this.payments = false
|
this.payments = false
|
||||||
},
|
},
|
||||||
NotificationMethod() {
|
NotificationEventListener() {
|
||||||
this.notification = !this.notification
|
this.notification = true
|
||||||
this.openModal = false
|
this.openModal = false
|
||||||
|
},
|
||||||
|
NotificationMethod() {
|
||||||
|
this.notification = false
|
||||||
}
|
}
|
||||||
// formatNumber(number) {
|
// formatNumber(number) {
|
||||||
// return number < 10 ? `0${number}` : number;
|
// return number < 10 ? `0${number}` : number;
|
||||||
|
|||||||
Reference in New Issue
Block a user