Copied to clipboard

Flag this post as spam?

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


  • uxbridge 9 posts 49 karma points
    Mar 05, 2014 @ 00:29
    uxbridge
    0

    TypeError: Object @@seoTitle@@ has no method 'contains'

    Hi Richard,

    I encountered a javascript error when playing about with the Title Template configuration option. The SEOChecker doctype fields failed to render properly in Umbraco 7:

    TypeError: Object @@seoTitle@@ has no method 'contains'

    In /App_Plugins/SEOChecker/SEOChecker/seoCheckerPropertyEditorController.js ~line 42

    $scope.parseTemplate = function (titleValue) {
    if($scope.model.value.snippetTitleTemplate.contains('@@seotitle@@'))
    {
    return $scope.model.value.snippetTitleTemplate.replace('@@seotitle@@', titleValue);
    }
    return  titleValue;
    };

    The contains() string prototype is only available in Firefox at the moment, as far as I know. I tried in FF and it works fine, but in Chrome and IE it doesn't. Using indexOf() would be more compatible in this case.

    Thanks!

     

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Mar 05, 2014 @ 09:56
    Richard Soeteman
    100

    Hi,

    This issue occurs on IE and Chrome indeed, did discover it last week but time for a fix was limited. Sorry about that. I've just uploaded a fix with release number 1.5.1. This will solve the issue. Download from our, or from my website. Just use the package installer to install the update and make sure to clear browser cache after install, then it should be fine again.

    Sorry for the hassle.

    Best,

    Richard

  • uxbridge 9 posts 49 karma points
    Mar 05, 2014 @ 13:26
    uxbridge
    0

    Thanks for the speedy response as always Richard!

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Mar 05, 2014 @ 13:30
    Richard Soeteman
    0

    You are welcome :)

Please Sign in or register to post replies

Write your reply to:

Draft