Git Product home page Git Product logo

Comments (11)

parndt avatar parndt commented on June 8, 2024

Are you running the rails-3-1 branch of this plugin?

from refinerycms-page-images.

Tranquility avatar Tranquility commented on June 8, 2024

yes

from refinerycms-page-images.

philtr avatar philtr commented on June 8, 2024

I'm experiencing this with Refinery 1.0.8 on Heroku as well. Works fine locally in development mode.

from refinerycms-page-images.

philtr avatar philtr commented on June 8, 2024

I may be experiencing an altogether different problem, because I think the problem must be in my code. I've done some digging to try to see if I can find what's even causing this problem. I can't. Here's what I've tried so far:

  • diff the html output between production/development modes (they're identical)
  • rolling back back versions of refinerycms-page-images back to 0.9.9
  • rolling back to Refinery 1.0.7
  • throwing an alert between lines 121-122 (the alert wouldn't display).
  • putting the $.proxy(...) inside an anonymous function
  • disabling as many other gems as possible

I generated a fresh Refinery 1.0.8 project, and the problem was not there. I tried to bring it in by:

  • pulling the database from the server that was having the problem (still works)
  • installing dalli gem and setting config.cache_store = :dalli_store
  • enabling cache_pages_backend
  • copying the database from my new project to the one I am having trouble with (still broken)

The only admin code I have is _additional_dashboard_menu_items.html.erb and one action added to admin/dashboard_controller.rb.

I realize that because it's not present in a stock Refinery app, it's probably something I did. I just think it's weird that I would have this problem in production mode but not in development mode.

from refinerycms-page-images.

dgdsp avatar dgdsp commented on June 8, 2024

same here. captions cannot be safed in 3.1 branch.

rails 3.1.3
edge via git
page-images branch 3.1

when trying to add a caption to an page image

  • there is the error '[missing "en.refinery.js.admin.page_images.done" translation]' where there should be a title
  • there is the error '[missing "en.refinery.js.admin.page_images.done" translation]' where there should be a safe button

when clicking on the button that should be the safe button nothing happens.

from refinerycms-page-images.

dgdsp avatar dgdsp commented on June 8, 2024

(saving works in the main branch on refinery gem version btw)

from refinerycms-page-images.

philtr avatar philtr commented on June 8, 2024

I had a public/javascripts/jquery-min.js in my project. When I deleted it, my problem was fixed. Not sure why it would break it. Does RefineryCMS use a custom version of jQuery?

Bizarre...

from refinerycms-page-images.

parndt avatar parndt commented on June 8, 2024

Yep, we do, but not for too much longer. The flavour of ours is in https://github.com/resolve/refinerycms/blob/1-0-stable/core/doc/included-jquery-ui-packages.jpg

from refinerycms-page-images.

philtr avatar philtr commented on June 8, 2024

That would explain it! Hopefully that will fix everyone else's problem as well...

from refinerycms-page-images.

dpie avatar dpie commented on June 8, 2024

On Refinery 1.0.8 and Page Images 1.0.4...

I was also running a newer version of jQuery at /public/javascripts/jquery.js which was accidentally overriding the bundled version of jQuery that Refinery provides in the gem.

Removing the newer version of jQuery (or renaming/moving it to a subdirectory) solved a few issues: The caption popup's "Done" button now retains the changes you've made, and caption text no longer shuffles around to different images when you reorder/add/remove images.

The only remaining issue is that the caption popup's [X] button does not wipe any changes you made to the caption. It just acts as another Done button. This may have been done by design, however, and not be a bug.

from refinerycms-page-images.

parndt avatar parndt commented on June 8, 2024

Hi, this is kind of old with no activity so closing it.. please re-open if this is still an issue.

from refinerycms-page-images.

Related Issues (20)

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.