Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • John C Scott 473 posts 1183 karma points
    Sep 14, 2017 @ 15:47
    John C Scott

    Changing Default Button Order Nicely

    Looking at this excellent OUR post which includes a code sample to change Umbraco/Js/ so you can have "Save" as default instead of "Publish" (my customer's current requirement)

    & reading this really excellent Matt Brailsford post from a little while ago. Here he proposes using something like:

    $httpProvider.interceptors.push(function ($q) {

    I'm trying to combine the two and inject this change rather than alter the source of a file that would get replaced in an upgrade.

    Am I missing the point though? Does this mean I have to copy and inject the whole function or can I somehow inject just this change?

    I'm thinking that I'd need to copy the whole contentEditingHelper service there's a reasonable risk that any future update may actually require a change in this to work so the whole thing might be self-defeating. A second opinion on another way to do this would be good.

Please Sign in or register to post replies

Write your reply to: