Comments (6)
Thank you for using this application, please make sure you reviewed the readme and checked that it is not an environmental issue. If it is an urgent security concern, please email [email protected]. Thank you!
from laravel-auth.
I am unable to replicate
from laravel-auth.
reverted and got screenshot
The only difference with default environment is the use of Soketi as pusher service. The fault is due to the $('#confirmSave').on('show.bs.modal', function (e) {...}
that is not executed unless wrapped in a $(document).ready() function.
To fix i changed the code in:
<script type="text/javascript">
// CONFIRMATION SAVE MODEL
$(document).ready(function() { // <== ensure event is registered
$('#confirmSave').on('show.bs.modal', function (e) {
var message = $(e.relatedTarget).attr('data-message');
var title = $(e.relatedTarget).attr('data-title');
var form = $(e.relatedTarget).closest('form');
$(this).find('.modal-body p').text(message);
$(this).find('.modal-title').text(title);
$(this).find('.modal-footer #confirm').data('form', form);
});
$('#confirmSave').find('.modal-footer #confirm').on('click', function(){
$(this).data('form').submit();
});
});
</script>
from laravel-auth.
If you make a PR I will honor it. Thank you 😊
from laravel-auth.
I'm trying to understand how to fork the project and submit PR... I hope i will be able to submit it soon since there are some other issues i'm interested to investigate and some minor improvements i may propose.
from laravel-auth.
Thank you for sharing this fix. I noticed the same issue in the form-modal-script.blade.php file.
Here's the corrected code:
`<script type="text/javascript">
$(document).ready(function() {
$('#confirmForm').on('show.bs.modal', function (e) {
var modalClass = $(e.relatedTarget).attr('data-modalClass') || '';
var submitText = $(e.relatedTarget).attr('data-submit');
var message = $(e.relatedTarget).attr('data-message');
var title = $(e.relatedTarget).attr('data-title');
var form = $(e.relatedTarget).closest('form');
var self = $(this);
self.alterClass('modal-*', modalClass);
self.find('.modal-body p').text(message);
self.find('.modal-title').text(title);
self.find('.modal-footer #confirm')
.text(submitText)
.data('form', form);
});
$('#confirmForm').find('.modal-footer #confirm').on('click', function(){
$(this).data('form').submit();
});
});
Please review and apply this change to the repository if possible.
Cheers
from laravel-auth.
Related Issues (20)
- composer update failed after fresh clonned + edited .env (php 8.0 @ dockered webdevops/php-apache-dev) HOT 1
- Class 'App\Uuid' not found HOT 4
- Kindly add password Strength Meter HOT 1
- Permission Cache issue HOT 3
- Upgrading to laravel-roles 7 in laravel-auth?
- Laravel\Socialite\Two\ InvalidStateException in Google / Docker Cloud Run HOT 1
- Installation instructions are wrong HOT 1
- Updates L9, BS5, and other cleanup
- Theme Management Requires pagination HOT 1
- Send verification code / link for email address change HOT 1
- lapor ndan
- Cant get passed 1st Step - Composer Install (PHP v to Dependency Clash) HOT 2
- Add a Persian language HOT 1
- https://github.com/jeremykenedy/laravel-auth/blob/master/resources/views/auth/passwords/email.blade.php
- Infrastructure adjustment HOT 1
- Unable to install = Composer without dependencies update HOT 5
- wrong path "jeremykenedy\\LaravelRoles\\": "packages/jeremykenedy/laravel-rosles/src/" in composer.json HOT 1
- Front Asset build warning HOT 2
- Continuously giving Failed to record activity event. Failed Validation: HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-auth.