javascript - Bootstrap JS Modal -


i send link forgotten password client. want show bootstrap js modal changing password when client clicks link. code showing approach provided below:

account.html

   <template name="resetpassword">    <div class="modal fade" id="mymodal-9" role="dialog">       <div class="modal-dialog">             <div class="modal-content">               <div class="modal-header">                   <button type="button" class="close" data-dismiss="modal">&times;</button>                     <span class="f-s-20 text-blue">Şİfre deĞİŞtİrme ekrani </span>               </div>               <div class="modal-body">                 {{#if resetpassword}}                 <form action="/reset-password"  id="resetpasswordform" method="post">                     <input id="resetpasswordpassword" name="password" placeholder="new password" type="password" >                     <input id="resetpasswordpasswordconfirm" name="password-confirm" placeholder="confirm" type="password" >                     <input class="btn-submit" id="resetpasswordbtn" type="submit" value="reset">                 </form>           {{/if}}               </div>               <div class="modal-footer">                   <button type="button" class="btn btn-default" data-dismiss="modal">kapat</button>               </div>           </div>        </div>   </div>  </template> 

account.js

accounts.onresetpasswordlink(function (token, done) {     session.set('resetpasswordtoken', token); $($(this).data("#mymodal-9")).show();      done(); }); 

use following code.

$("#mymodal-9").modal('show'); 

Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -