Unverified Commit aa2250dd authored by Mark Halliwell's avatar Mark Halliwell
Browse files

Issue #3064547 by markcarver, Giuseppe87: Modal title inherits header attributes



Signed-off-by: default avatarMark Carver <mark.carver@me.com>
parent 44b9de55
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -521,11 +521,9 @@
        variables = $.extend(true, {}, defaults, variables);

        if (typeof variables.title === 'string') {
          variables.title = $.extend({}, defaults, { content: variables.title });
          variables.title = $.extend({}, defaults.title, { content: variables.title });
        }

        variables.title.attributes = Attributes.create(defaults.title.attributes).merge(variables.title.attributes);

        var title = Drupal.theme('bootstrapModalTitle', variables.title);
        if (title) {
          var attributes = Attributes.create(defaults.attributes).merge(variables.attributes);