Coder Social home page Coder Social logo

jquery-ui-rails's Introduction

jquery-ui-rails

Build Status Dependency Status

This gem packages the jQuery UI assets (JavaScripts, stylesheets, and images) for the Rails asset pipeline, so you never have to download a custom package through the web interface again.

See VERSIONS.md to see which versions of jquery-ui-rails bundle which versions of jQuery UI.

Warning: This gem is incompatible with the jquery-rails gem before version 3.0.0! Strange things will happen if you use an earlier jquery-rails version. Run bundle list to ensure that you either aren't using jquery-rails, or at least version 3.0.0 of jquery-rails.

Usage

In your Gemfile, add:

gem 'jquery-ui-rails'

Require Everything

To require all jQuery UI modules, add the following to your application.js:

//= require jquery-ui

Also add the jQuery UI CSS to your application.css:

/*
 *= require jquery-ui
 */

Warning:

Due to directory structure changes between jQuery UI 1.10, 1.11, and 1.12, if you use version is lower than 6.0, you will have to use a different naming for the files to require, please check following links for more information: for 5.0 users, for 4.2 users.

All images required by jQuery UI are automatically served through the asset pipeline, so you are good to go! For example, this code will add a datepicker:

$(function() {
  $('.datepicker').datepicker();
});

Require Specific Modules

The jQuery UI code weighs 51KB (minified + gzipped) and takes a while to execute, so for production apps it's recommended to only include the modules that your application actually uses. Dependencies are automatically resolved. Simply pick one or more modules from the asset list below.

For example, if you only need the datepicker module, add this to your application.js:

//= require jquery-ui/widgets/datepicker

In your application.css, require the corresponding CSS module (notice no widgets/ subdirectory here):

/*
 *= require jquery-ui/datepicker
 */

JavaScript Assets

UI Core

//= require jquery-ui/core
//= require jquery-ui/widget
//= require jquery-ui/position

You usually do not need to require these directly, as they are pulled in by the other JavaScript modules as needed.

Interactions

//= require jquery-ui/widgets/mouse
//= require jquery-ui/widgets/draggable
//= require jquery-ui/widgets/droppable
//= require jquery-ui/widgets/resizable
//= require jquery-ui/widgets/selectable
//= require jquery-ui/widgets/sortable

For all but jquery-ui/mouse and jquery-ui/droppable, remember to require their matching CSS files in your application.css as well.

Widgets

//= require jquery-ui/widgets/accordion
//= require jquery-ui/widgets/autocomplete
//= require jquery-ui/widgets/button
//= require jquery-ui/widgets/datepicker
//= require jquery-ui/widgets/dialog
//= require jquery-ui/widgets/menu
//= require jquery-ui/widgets/progressbar
//= require jquery-ui/widgets/selectmenu
//= require jquery-ui/widgets/slider
//= require jquery-ui/widgets/spinner
//= require jquery-ui/widgets/tabs
//= require jquery-ui/widgets/tooltip

For all of these, remember to require their matching CSS files in your application.css as well.

I18n

Datepicker has optional i18n modules for non-US locales, named jquery-ui/datepicker-xx[-YY] (list), for example:

//= require jquery-ui/widgets/datepicker
//= require jquery-ui/i18n/datepicker-pt-BR

Note that you still need to include the main datepicker module. It is not required automatically for performance reasons.

Effects

//= require jquery-ui/effect.all

OR

//= require jquery-ui/effect
//= require jquery-ui/effects/effect-blind
//= require jquery-ui/effects/effect-bounce
//= require jquery-ui/effects/effect-clip
//= require jquery-ui/effects/effect-drop
//= require jquery-ui/effects/effect-explode
//= require jquery-ui/effects/effect-fade
//= require jquery-ui/effects/effect-fold
//= require jquery-ui/effects/effect-highlight
//= require jquery-ui/effects/effect-puff
//= require jquery-ui/effects/effect-pulsate
//= require jquery-ui/effects/effect-scale
//= require jquery-ui/effects/effect-shake
//= require jquery-ui/effects/effect-size
//= require jquery-ui/effects/effect-slide
//= require jquery-ui/effects/effect-transfer

Stylesheet Assets

UI Core

/*
 *= require jquery-ui/core
 *= require jquery-ui/theme
 */

You might want to require these if you do not use any of the following modules, but still want jQuery UI's basic theming CSS. Otherwise they are automatically pulled in as dependencies.

Interactions

/*
 *= require jquery-ui/draggable
 *= require jquery-ui/resizable
 *= require jquery-ui/selectable
 *= require jquery-ui/sortable
 */

Widgets

/*
 *= require jquery-ui/accordion
 *= require jquery-ui/autocomplete
 *= require jquery-ui/button
 *= require jquery-ui/datepicker
 *= require jquery-ui/dialog
 *= require jquery-ui/menu
 *= require jquery-ui/progressbar
 *= require jquery-ui/selectmenu
 *= require jquery-ui/slider
 *= require jquery-ui/spinner
 *= require jquery-ui/tabs
 *= require jquery-ui/tooltip
 */

Contributing

Bug Reports

For bugs in jQuery UI itself, head to the jQuery UI Development Center.

For bugs in this gem distribution, use the GitHub issue tracker.

Setup

The jquery-ui-rails gem should work in Ruby 1.8.7 apps. To run the rake tasks, you need Ruby 1.9 however.

git clone git://github.com/jquery-ui-rails/jquery-ui-rails.git
cd jquery-ui-rails
git submodule update --init
bundle install
bundle exec rake # rebuild assets

Most of the code lives in the Rakefile. Pull requests are more than welcome!

Hacking jQuery UI

The jquery-ui-rails repository is contributor-friendly and has a git submodule containing the official jquery-ui repo. This way it's easy to hack the jQuery UI code:

cd jquery-ui
git checkout master  # or 1-8-stable
... hack-hack-hack ...
bundle exec rake  # rebuild assets based on your changes

Assuming your app's Gemfile points at your jquery-ui-rails checkout (gem 'jquery-ui-rails', :path => '~/path/to/jquery-ui-rails'), all you need to do now is refresh your browser, and your changes to jQuery UI are live in your Rails application.

You can send pull requests to the jquery-ui GitHub project straight out of your submodule. See also their Getting Involved guide.

Testing

As a smoke test, a testapp application is available in the repository, which displays a check mark and a datepicker to make sure the assets load correctly:

cd testapp
bundle install
rails server

Now point your browser at http://localhost:3000/.

Releasing

Be sure that VERSIONS.md, History.md and lib/jquery/ui/rails/version.rb are up-to-date. Then build and push like so:

rake build
gem push pkg/jquery-ui-rails-X.Y.Z.gem
git tag vX.Y.Z
git push --tags

Limitations

  • Only the base theme (Smoothness) is included. Once it becomes possible to generate all theme files from the jQuery UI sources, we can package all the other themes in the ThemeRoller gallery.

    Perhaps we can also add helper tasks to help developers generate assets for their own custom themes or for third-party themes (like Selene).

    If you still want a different theme right now, you could probably download a custom theme and require the theme CSS after requiring any other jQuery UI CSS files you need, making sure to serve up the theme images correctly. (This is arguably cumbersome, not officially supported by this gem, and adds 1 KB overhead as both the base theme and the custom theme are served up.)

jquery-ui-rails's People

Contributors

alindeman avatar alvir avatar borzik avatar francocatena avatar jaredbeck avatar jhilden avatar joliss avatar jonkerz avatar josh avatar luisalima avatar mange avatar n-rodriguez avatar nescalera avatar rosenfeld avatar simi avatar skateinmars avatar stmontgomery avatar sunny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery-ui-rails's Issues

Include minor versions + versions file

Hi, very useful gem.

I'd like to request that for future releases that when you release a new version, please cut individual releases for any intermediate jQuery-ui versions which may have been released.

This issue for example http://bugs.jqueryui.com/ticket/9315 requires a rollback to jQuery-ui 1.10.2. Unfortunately this gem jumped from jQuery-ui v1.10.0 to v1.10.3, and now I have to do a manual install. Not the end of the world, but I wish I could do the rollback purely via my Gemfile.

Also a file containing versions like this is useful: https://github.com/rails/jquery-rails/blob/master/VERSIONS.md

Asset include feature conflict with dependencies

Hi,

You manage the dependencies between .js files using require and this conflict with the include feature that I would like to use.

I've created a file inside my Rails app: /app/assets/javascripts/jquery.ui.custom.js that contains:

//= include jquery.ui.core
//= include jquery.ui.widget
//= include jquery.ui.mouse
//= include jquery.ui.draggable
//= include jquery.ui.resizable

I like the idea of having a single .js file that contains all jquery-ui code that I need instead of having multiple .js files around (when rendering inside the browser).

But since you use require for your dependencies I end up with my file jquery.ui.custom.js + jquery.ui.core, jquery.ui.widget and jquery.ui.mouse as independent files.

There is no easy solution here. Either you handle the dependencies inside the gem or the user does.
And I'm more in favor of the last solution instead :)

Regards,

`jquery` is required again by `jquery.ui.core`

I my application.js.coffee, i've required in jquery with:

#= require jquery
#= require jquery_ujs

Later, I also required in the jquery.ui components.

#= require jquery.ui.datepicker

It results in loading the jquery twice

<script type="text/javascript" src="/assets/jquery.js?body=1"></script>
<script type="text/javascript" src="/assets/jquery_ujs.js?body=1"></script>
...
<script type="text/javascript" src="/assets/jquery.js?body=1"></script>

I think it should be a bug in this gem.

Prevent from loading jquery

I have the following in my manifest file:

//= require jquery_ujs
//= require jquery.ui.datepicker

And I load jquery 1.8.0 separately in my view from Google's CDN.

However - when I add the jquery.ui.datepicker line to my manigest - and I look at the view source of my page - it adds the jquery.js file too (and it isn't minified) ... Now my page loads jquery twice.

How can I prevent this from happening? I want to continue serving jquery from Google.

Add a jquery.effects.all

It would be nice to have a jquery.effects.all file for loading all effects. Is this something that can be added?

Get jquery-ui file name back

As long as you can control dependencies via gemspec and jquery-rails does no longer provide jquery-ui file, the upstream name can (and should) now be used.
Consider making an update providing jquery-ui aliased to jquery.ui.all.

couldn't find file 'jquery.ui.tooltip'

The tooltip assets are no longer loading.

In my .js file I have
//= require jquery
//= require jquery.ui.tooltip

and get the error in the title when I try to load the page.

I tried loading dialog and it is fine. I then tried .all and looked at what assets were included and tooltip is not one of them. I was using jquery-ui-rails 2.0.0 when I first got the error then updated to 4.1.1 and am still getting it. I don't know what version I was using when it was working, but it was 6+ months ago the last time I used tooltip successfully.

Can't find css files on Heroku cedar stack

I'm using the beta stack so I guess I'm not expecting things to work, but what could be causing this:

ActionView::Template::Error (couldn't find file 'jquery.ui.datepicker'

My attempted fix included adding the load path:

config.sass.load_paths << "#{Gem.loaded_specs['jquery-ui-rails'].full_gem_path}/vendor/assets/stylesheets"

However, the same problem occurred. No errors in development environment at all.

Any way to prevent require from including "core" etc again?

We have our application.js manifest with jquery.ui being required and a couple widgets included as well. There are certain parts of the application that we use one off widgets and we want to just include it on that page alone. We will have a page specific javascript file included on that page and add require rules in it for any 'one off' JS files. Example:

application.js may have:

//= require jquery.ui.datepicker

admin_page.js may have:
//= require jquery.ui.sortable

Unfortunately when using this gem I will now have jquery.ui.core jquery.ui.widget, etc. included again (once from the application.js file and again in the admin_page.js file).

Unexpected behaviour when engine has same require as main app in asset pipeline manifest

Hi,

I apologize in advance as I'm not sure if this is an issue regarding rails (asset pipeline), jquery-ui-rails, sprocket, or the custom engine.

I have an engine that uses 'jquery-ui-rails' and the main app also uses 'jquery-ui-rails'. If I require "jquery.ui.datepicker" in the engine's manifest, running "rake assets:precompile" will not pull in jquery.ui.datepicker styles into the main app's application.css (even though 'jquery.ui.datepicker' is in the main app's manifest); instead the styles will only be in custom_engine.css.

In the engine:
in "custom_engine/app/assets/stylesheets/custom_engine.css.scss":

/*
 *= require jquery.ui.datepicker
 *= require_self
 *= require_tree ./custom_engine
 */

in "custom_engine/custom_engine.gemspec":

Gem::Specification.new do |s|
  s.add_dependency "jquery-ui-rails"
end

in "custom_engine/lib/custom_engine.rb":

require 'jquery-ui-rails'
module CustomEngine
end

in "custom_engine/lib/custom_engine/engine.rb":

module CustomEngine
  class Engine < :: Rails::Engine
    initializer :assets do |config|
      Rails.application.config.assets.precompile += %w( custom_engine.css custom_engine.js )
    end
  end
end

in the main app:
in "app/assets/stylesheets/application.css":

/*
 *= require jquery.ui.datepicker
 *= require custom_engine
 *= require_directory .
*/

I'd be happy to provide more information, but this is all that I can think of that's relevant.

The workaround right now is to just not require "jquery.ui.datepicker" in the engine's manifest.

Thank you for your time!

Autocomplete CSS depends on Menu

I had to manually require jquery.ui.menu in order for autocomplete to look correct in 1.9. I'm guessing that the rake task run in a4dd6ad was done for js only and not for css?

Compatibility Error with ActiveAdmin -- couldn't find file 'jquery.ui.datepicker'

Not sure which end this is on. I ran into the same issue with v5.0.0 using the current-master branch of ActiveAdmin.

ActionView::Template::Error (couldn't find file 'jquery.ui.datepicker'
  (in /home/raimat/webapps/keita/gems/bundler/gems/active_admin-2ae0a9e09bf9/app/assets/javascripts/active_admin/base.js.coffee:2)):
     7:   <%= stylesheet_link_tag params[:controller] %>
     8:   <link rel='stylesheet' href='/assets/typicons.min.css'/>
     9:
    10:   <%= javascript_include_tag "application" %>
    11:   <%= javascript_include_tag 'ckeditor/ckeditor.js' %>
    12:
    13:
  app/views/layouts/application.html.erb:10:in `_app_views_layouts_application_html_erb__42414357695359850_50936120'
  app/controllers/home_controller.rb:15:in `index'

Switching back to jquery-ui-rails 4.2.1 resolves this error.

Can anyone tell if this is on the ActiveAdmin side or the Jquery-ui-rails side?

Including it's own jQuery version?

I'm experiencing an issue where jquery-ui-rails is including it's own jquery. This creates some issues in dependency load order? Could you direct me to where it's doing this? I couldn't find it in the manifest at all.

Extremly slow compilation time

Hi,

I'm experiencing extremely slow compilation times when using the gem (even when not requiring any of the files). By slow I mean 15-20 min.

I would really like to be handy and provide a pull request, but not quite sure where to start here. Any tip?

My project is using rails 3.1.6 and ree 1.8.7

Asset compilation issue on Heroku

Upon adding the gem and deploying to Heroku's Cedar stack, asset compilation fails. After a few minutes it times out and leaves behind the following tidbits:

/app/slug-compiler/lib/utils.rb:65:in `block (2 levels) in spawn': command='/app/slug-compiler/lib/../buildpacks/ruby/bin/compile /tmp/build_28buf55d2o6q2 /app/tmp/repo.git/.cache' exit_status=0 out='' at=timeout elapsed=538.774163722992 (Utils::TimeoutError)

...

Heroku push rejected, failed to compile Ruby/rails app

Including jquery-ui

Hi,

I had to change the include directive in my application.js to jquery-ui correct.
I had to write //= require jquery-ui instead of //= require jquery.ui.all, mentioned in the Readme.

Am I missing something?

monthpicker

I would really appreciate a month picker. Thanks for the awesome gem!

calendar.gif

the date picker icon trigger image is not found .... requested by date picker at images/calendar.gif ( relative url ? )

<img class="ui-datepicker-trigger" src="images/calendar.gif" alt="..." title="...">

is that the standard behavior ?

unable to find jquery.ui.all for rails mountable engine using .gemspec

I am working on a web app which is built as a rails engine. I included jquery-ui-rails in its gemspec file, the javascript inclusion directive in manifest file works fine however the css inclusion directive fails on page load, complaining unable to find the file. (jquery.ui.all)
Any ideas?

Thanks!

Autocomplete no longer working

After upgrading from jquery-ui-rails 3.0.1 to 4.0.3, my autocomplete stopped working. The json file was correct, and was working perfectly in 3.0.1. I tried from manual ajax calls, as well as having a simple array as a source, but it would not show the dropdown box of the autocomplete.

I resolved to downgrading to the last version that I knew it worked, 3.0.1.

Fixing this would be greatly appreciated so we can upgrade to the latest version ;)

Thank you

gem-version vs jquery.ui -version

Hey!

I couldnt find a list/mapping for jquery.ui-version to gem-version. Maybe its not the worst way to use the jquery.ui-versioning (with eventual subversioning, eg 1.10.2-alpha)

Is there anywhere this information?

Greetings

Datepicker not loaded (simple_form)

application.js:

//= require jquery
//= require jquery_ujs
//= require jquery.ui.all
//= require jquery_nested_form
//= require ui.multiselect
//= require_tree .

$(function(){
$.superbox();
$(".multiselect").multiselect();
$(".datepicker").datepicker();
});

_form.html.haml:

= simple_form_for @car do |f|
  = f.input :name
  = f.input :build_at, input_html: { class: 'datepicker' }
  = f.submit

Datepicker isn't loaded. Any idea why?

Options autocomplete fail

I have a problem,
i use the autocomplete widgets in form with rails, he works perfect, but in moment which the user change the options returned to form, the list "

  • " disappear.

  • Include custom theme

    hi
    i got a custom theme made from the theme roller. How can i make it the default?

    no images?

    i'm probably doing something stupid here but i can't seem to get the jquery ui images to load even though the js and css seem to be fine.

    i am currently using:

    rails (3.2.14)
    jquery-rails (3.0.4)
    jquery-ui-rails (4.0.3)
    jquery-ui-sass-rails (4.0.3.0)

    and as far as integration points:

    application.css.scss contains @import "jquery.ui.all";
    application.js contains //= require jquery.ui.all

    but on page load is see:

    GET http://localhost:3000/assets/images/ui-bg_glass_75_e6e6e6_1x400.png 404 (Not Found) jquery.js?body=1:7094
    GET http://localhost:3000/assets/images/ui-bg_flat_75_ffffff_40x100.png 404 (Not Found) jquery.js?body=1:7094
    GET http://localhost:3000/assets/images/ui-bg_glass_75_dadada_1x400.png 404 (Not Found) jquery.js?body=1:5271
    GET http://localhost:3000/assets/images/ui-bg_highlight-soft_75_cccccc_1x100.png 404 (Not Found) jquery.js?body=1:7227
    GET http://localhost:3000/assets/images/ui-icons_888888_256x240.png 404 (Not Found) jquery.js?body=1:7227
    GET http://localhost:3000/assets/images/ui-icons_454545_256x240.png 404 (Not Found)

    is there any external source of images i have to link in? i was under the impression they were included and this "just works", so likely i've messed something up.

    any help or pointing out the error is hugely appreciated. thanks much.

    Do not autoload dependencies

    I want to compile my assets into two files, main.js and advanced.js. I'm serving main.js with every page, but advanced.js only with pages that have advanced UI features. The problem is that main.js already loads jquery, so when advanced.js loads a jquery.ui.* module, it brings jquery along with it into advanced.js, duplicating jquery code. Not only is this wasteful, it causes conflicts since jquery is loaded twice.

    Sprockets fails building jquery-ui-rails assets with JRuby

    I have a JRuby 1.6.7.2 / Ruby 1.9 / Rails 3.2 app with "gem 'jquery-ui-rails'" in Gemfile, "//=jquery.ui.all" in app/assets/javascripts/application.js, and " *= require jquery.ui.all" in app/assets/stylesheets/application.css. (Originally I had "jquery.ui.autocomplete" rather than "jquery.ui.all", since autocompletion is what I'm using that for.; however, behavior described below is same.)

    This runs fine interpreted, but when I generate a WAR file and run it under Tomcat, I get

    2012-07-09 11:59:32.346 SEVERE [11] rails Error compiling asset application.js:
    2012-07-09 11:59:32.346 SEVERE [11] rails Sprockets::FileNotFound: couldn't find file 'jquery.ui.all'

    and

    2012-07-09 11:59:32.721 SEVERE [12] rails Error compiling asset application.css:
    2012-07-09 11:59:32.721 SEVERE [12] rails Sprockets::FileNotFound: couldn't find file 'jquery.ui.all'

    Am I missing something here, or is this a bug, and if so, is there a workaround?

    How to make it work with Rails 4?

    Hi,

    How do I make this running in Rails 4? I include gem in Gemfile but it is not working:

    couldn't find file 'jquery.ui.datepicker'

    can't get datepicker to work in rails 3

    Hi,

    I followed the usage instructions but seem to be missing something, since invoking datepicker doesn't work at all for me :

    gemfile :
    gem 'jquery-rails'
    gem 'jquery-ui-rails'

    application.js :
    //= require jquery
    //= require jquery_ujs
    //= require_tree .
    //= require jquery.ui.datepicker

    $(function() {
    $("#cedric").datepicker();
    });

    view :
    "


    Valide jusqu'au :


    <%= f.text_field :date_fin, :id => "cedric" %>

    "

    the click in the field produces absolutely nothing...

    my bundle install indicates : Using jquery-ui-rails (4.0.3)

    images in production subdirectory problem

    Thanks for the gem first of all, saved me a lot of time :)

    I do have a bug however, in development all images are fine
    where in production the images go wrong.

    The reason for this is because in production I run in a subdirectory (have to)
    the javascripts/stylesheets load perfectly as compiled:
    http://www.example.com/app/assets/application-(fingerprint).(js/css)

    however the jquery-ui images go wrong:
    http://www.examples.com/assets/jquery-ui/ui-icons_888888_256x240-(fingerprint).png

    while it should be
    http://www.examples.com/app/assets/jquery-ui/ui-icons_888888_256x240-(fingerprint).png

    notice the difference in the /app/ part

    when however I manually go to the correct url, the jquery-ui assets are actually there, so no problems there.. only routing.

    Thank you for fixing this!

    js and css requires fail

    I added the gem, bundled, added the two lines for assets,

        //= require jquery.ui.all
        *= require jquery.ui.all
    

    and it generates this error on browser load:

     couldn't find file 'jquery.ui.all'
      (in /home/jseidel/Dev/ArborwellWebForms/app/assets/stylesheets/application.css:7)
    
    Extracted source (around line #7):
    
    4:     %title 
    5:       Arborwell : 
    6:       =yield(:title) || 'Home'
    7:     = stylesheet_link_tag "application"
    8:     = stylesheet_link_tag "application-print", media: 'print'
    9:     = javascript_include_tag "application"
    10:     - if Rails.env == 'test'

    What am I doing wrong? I've got version 4.0.2 installed.

    Sprockets::FileNotFound is occured "couldn't find file 'jquery-ui'"

    (Sorry, I'm not good at English.)
    When I write based on Readme.md

    Sprockets::FileNotFound is occured "couldn't find file 'jquery-ui'"
    (in /Users/xxx/projects/xxx/app/assets/javascripts/application.js:16)
    

    app/assets/javascripts/application.js

    And this error is fixed, when I replace this line.
    before
    app/assets/javascripts/application.js

    //= require jquery-ui
    

    after
    app/assets/javascripts/application.js

    //= require jquery.ui.all
    

    I suggest to update Readme.md in above line and similar ones.
    Would I send Pull Request?

    menu

    hello, how can I implement Widgets menu?

    Missing 4.2.1 tag

    Went to go look at the diffs in the new v4.2.1 and did not see tag though that is the latest gem version.

    If I missed something and its there, apologies.

    Missing images in production

    I just added the latest version of this gem to my rails 3 product. I'm only using the datepicker functionality, so I added the appropriate require entries to my js/css manifests. Everything worked well in development, but I noticed that the images for the left/right arrows in the datepicker were missing in production. When I inspected the source, I found that the production image paths are all "/images/.." when they need to be "/assets/...". In development env, the paths are "/assets/..." and the images display as you would expect. Any thoughts?

    CSS images url doesn't contain fingerprinted image urls

    I'm working with rails 4.0.2 and jquery-ui-rails (4.1.1).

    When I precompile assets in production environment, jquery-ui images get compiled and assigned a figerprinted name but precompiled css get url with correct path but not fingerprinted image name.

    when I run rake assets:precompile I get something like this for all ui images:

    I, [2014-02-02T11:06:56.545066 #24800] INFO -- : Writing /home/horasintegracion/gestionhoras2/gestionhorasv4/public/assets/jquery-ui/ui-icons_222222_256x240-890385424135de1513f00cbecfb7f990.png

    but public/assets/application-f20cf4a978a575fcd14c9f13385a3d1d.css shows this:

    .ui-widget-content .ui-icon {
    background-image: url(/assets/jquery-ui/ui-icons_222222_256x240.png)/{iconsContent}/;
    }

    v4.1.1 issue.

    After upgrade got this error with sprockets:

    undefined method `dependency_paths' for #Sprockets::StaticAsset:0x10f6f7ee8

    Went back to version 4.1.0 and problem went away.

    Option to leave out jquery.ui.theme.css

    I would like to be able to include jquery.ui.tabs.css, but doing so causes jquery.ui.theme.css to be included. I have no use for this and would like to disable it. From what I can tell it's not a dependency for tabs. The js includes work just fine, it's just the css portion I'm wondering about.

    Unable to load jquery.ui.draggable seperatly

    When I put //= require jquery.ui.all in my application.js and application.css files, the draggable plugin works.

    But when I try //= require jquery.ui.draggable in the application.css file, while keeping the css file the same, nothing happens. I don't see an error message.

    When I also put //= require jquery.ui.draggable in the CSS file, I get the following error:

    Sprockets::FileNotFound
    couldn't find file 'jquery.ui.draggable'

    I'm using Ruby 1.9.3, Rails 3.2.8, jquery-rails 2.1.3 and jquery-ui-rails 2.0.2.

    Cannot find the effects files

    Hi,
    I am having trouble including the effects files specifically.

    I currently require datepicker and autocomplete, but when I require effect.all I get an error in my browser.

    //= require jquery.ui.datepicker
    //= require jquery.ui.autocomplete
    //= require jquery.ui.effect.all
    

    and here's the error:

    Uncaught Error: Sprockets::FileNotFound: couldn't find file 'jquery.ui.effect.all'

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo 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.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google โค๏ธ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.