Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

Dialog: Line break in templateUrl with IE7/8 #328

@enkelmedia

Description

@enkelmedia

When I was setting up a dialog like this everything worked fine in IE9, Chrome and FF but in IE7+8 i got an strange error just saying "[object Error]undefined " to the log.

This code is used:

$scope.opts = {
...
templateUrl: '/CreateNewTripView.html',
controller: 'TestDialogController'
};

$scope.openDialog = function () {

    var d = $dialog.dialog($scope.opts);
    d.open();

}

After trying to remove all code from CreateNewTripView and its controller i added just a H3 and it worked. BUT. When i added a linebreak before the h3 in crashed in ie7+8.

So if the first line in the template is a line break it will crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions