Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8310343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:25:37+00:00 2026-06-08T19:25:37+00:00

Initially no confirm was coming up. I found that adding //= query_ujs to my

  • 0

Initially no confirm was coming up.
I found that adding //= query_ujs to my asset manifold resolved this.
However… now I find that the confirm dialog takes “2 clicks” to use (either the cancel or the ok buttons).

My manifest looks like this:

//= require jquery
//= require jquery-ui
//
// ujs needed for delete confirm dial boxes.
//= require jquery_ujs

Whether it’s cancel or OK, it takes two clicks.
The Rails code for the delete button

= button_to '', schedule_path(schedule), 
:method => 'delete', 
:confirm => 'Are you sure you want to delete this schedule?', 
:class => 'deleteicon', 
:title => "Delete #{name}"

Resulting HTML:

<form action="/schedule/719" class="button_to" method="post">
  <div>
    <input name="_method" value="delete" type="hidden">
    <input class="deleteicon" data-confirm="Are you sure you want to delete this schedule?" title="Delete Shedule A" value="" type="submit">
    <input name="authenticity_token" value="wpcofEiLu6NXymHj289XGahTTT1XqNI56XvBlAFq2G8=" type="hidden">
  </div>
</form>

js for page header:

<script src="/assets/jquery.js?body=1" type="text/javascript"></script>
<script src="/assets/jquery-ui.js?body=1" type="text/javascript"></script>
<script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script>
<script src="/assets/application.js?body=1" type="text/javascript"></script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:25:39+00:00Added an answer on June 8, 2026 at 7:25 pm

    The answer was asset compilation.

    Our system is set to automatically compile assets during runtime.

    I had (mistakenly) also done a rake assets:precompile so I had basically duplicated the js and created the duplicate. I noticed at the time theta the precompile that it created a lot of files which was a red flag as to why things had changed and the double click had started (although when precompile is used, it has its place).

    Thanks to git I was able to revert to master, rebranch anew with a new branch name and just not do the precompile step.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Initially I thought this was going to work, but now I understand it won't
I have this code var users = result.users; // array $(#dialog:ui-dialog).dialog(destroy); $(#dialog-confirm).dialog({ resizable: false,
Would someone be so kind as to confirm that I am understanding this correctly.
Initially I had designed this flash based navigation menu for my website, after going
Initially I've tried to find possible ways to do HLS segmenting on other non-Mac
Before describing the problem, let me first point out that this is a distinct
I've got an app that initially loads in one view controller for a period
I'm refactoring some code that currently looks like this: $$('#wrapper > div').each(function(e){ if((e.id!='header') &&
Can anyone can confirm the best idea for storing jquery code, initially i was
I would like to confirm that the following analysis is correct: I am building

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.