GithubHelp home page GithubHelp logo

Comments (23)

jmk1 avatar jmk1 commented on June 18, 2024

Hi Tom, where do I add this workaround? I've had a look through the Umbraco files but can't see where this code would go?

from archetype.

tomfulton avatar tomfulton commented on June 18, 2024

@jmk1 I added this right in controller.js (Archetype's) when doing some testing. Should work, but intermittently and still a bit flaky.

Thinking we might try to just have to do the sorting ourselves instead of re-using the ui-sortable directive

from archetype.

jmk1 avatar jmk1 commented on June 18, 2024

Tom - In my version (0.4.0-alpha) there isn't a controller.js in the app_plugins/archetype folder. There is only an archetype.js file - is this the one that I should be editing?

from archetype.

kgiszewski avatar kgiszewski commented on June 18, 2024

@jmk1 Yes. Our build script concats them all into that one file.

from archetype.

jmk1 avatar jmk1 commented on June 18, 2024

Thanks Kevin. One other thing I'm having trouble with - after I've edited the archetype.js file, I don't think the updated file is loading in Umbraco - I've tried clearing the browser cache and restarting the application. Is there anything else I need to do?

from archetype.

kgiszewski avatar kgiszewski commented on June 18, 2024

@jmk1 Yep :) Check this link to clear the cache: http://imulus.github.io/Archetype/#umbraco-caching

from archetype.

tomfulton avatar tomfulton commented on June 18, 2024

@jmk1 👍 - beat me to it.

Worth mentioning, as Kevin pointed out, ideally you'd want to work off the source (controller.js) and use our build script to copy the changes to your site Umbraco (grunt watch:dev --target="D:\yoursite"). But, what you're doing should work fine - you're likely just running into the heavy caching in Umbraco 7.

from archetype.

jmk1 avatar jmk1 commented on June 18, 2024

Thanks for the help guys - I'm not very good with all of the new js in the U7 backend. I still can't get it to work, if I paste the timeout function (as per Tom's example above) into archetype.js (at the bottom, outside of the other functions) nothing seems to happen. And if I copy the function into the angular.module("umbraco").controller("Imulus.ArchetypeController",...) function, then the datatype disappears and is replaced by a textbox multiple with a red border. Is there anything else I should be doing?

from archetype.

tomfulton avatar tomfulton commented on June 18, 2024

@jmk1 Just tested this out again and seems to be working for most cases - might as well try it out and see how it goes. Pull request: #73

Mind giving it a shot? Here's an installable package if that helps.

from archetype.

jmk1 avatar jmk1 commented on June 18, 2024

Thanks very much Tom - I can now get it working in Firefox. It doesn't look like the updated javascript was included in the installable package js? However I copied over the new js lines from the pull request, and changed the $timeout to setTimeout and it's all working in Firefox. Thanks for the help! I appreciate it.

from archetype.

tomfulton avatar tomfulton commented on June 18, 2024

@jmk1 Whoops, may have sent you the wrong file. Glad you got it worked out! I'm not very confident in this fix, but we'll roll with it for now and see how it works. Let us know if you hit any issues.

from archetype.

kgiszewski avatar kgiszewski commented on June 18, 2024

Re-opening as we've received two reports this week on this issue.

from archetype.

sniffdk avatar sniffdk commented on June 18, 2024

Just stumpled upon this one. In case no one noticed yet, you can click the the field names to focus the input fields, except for the regex field apparently 😄

from archetype.

kgiszewski avatar kgiszewski commented on June 18, 2024

Now's your chance to be a Archetype contributor! (hint: PR) ;)

from archetype.

sniffdk avatar sniffdk commented on June 18, 2024

Yeah, been thinking about it, it's a great project :)

from archetype.

kipusoep avatar kipusoep commented on June 18, 2024

Having the same issue.

from archetype.

kgiszewski avatar kgiszewski commented on June 18, 2024

@tomfulton if you still think this is related to the custom version of ui-sortable, maybe we could include the un-modified version with Archetype and load it on Archetype pages (therefore overriding the modified version)?

from archetype.

tomfulton avatar tomfulton commented on June 18, 2024

@kgiszewski Yeah, I would think that's still the issue, but I haven't looked in quite some time. I imagine your idea will work, assuming it's possible to override modules like that

from archetype.

Blatant avatar Blatant commented on June 18, 2024

Just a quick one to say I'm experiancing the same issue in Firefox/Win7. I installed from nuGet so I'm honestly not sure what version I am running!
PS. Once you get the cursor focused on a control, you can still tab through the fields...

from archetype.

kipusoep avatar kipusoep commented on June 18, 2024

Any updates? Using Chrome instead of Firefox for back-office stuff sucks 👎 :-P

from archetype.

kgiszewski avatar kgiszewski commented on June 18, 2024

Not likely that an update will come soon. It appears tied to the variant of ui-sortable in the Umbraco core. We haven't heard back from the core team. We have tried a variety of hacks, but ultimately we use Chrome to workaround this issue.

http://issues.umbraco.org/issue/U4-4281

Please read and consider voting.

from archetype.

Benjaminsson avatar Benjaminsson commented on June 18, 2024

If you hide the labels Firefox still misbehaves. Maybe an edge case but good to know if someone run in to this.

from archetype.

kjac avatar kjac commented on June 18, 2024

Fixed... at some point :)

from archetype.

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.