diff --git a/dashboard-ui/dlnaprofile.html b/dashboard-ui/dlnaprofile.html index d08ac35688..a29244cc43 100644 --- a/dashboard-ui/dlnaprofile.html +++ b/dashboard-ui/dlnaprofile.html @@ -21,8 +21,6 @@
- - @@ -66,6 +64,67 @@
+
+

${HeaderIdentification}

+
+
+

${HeaderIdentificationCriteriaHelp}

+
+
    +
  • + + +
    ${LabelIdentificationFieldHelp}
    +
  • +
  • + + +
    ${LabelIdentificationFieldHelp}
    +
  • +
  • + + +
    ${LabelIdentificationFieldHelp}
    +
  • +
  • + + +
    ${LabelIdentificationFieldHelp}
    +
  • +
  • + + +
    ${LabelIdentificationFieldHelp}
    +
  • +
  • + + +
    ${LabelIdentificationFieldHelp}
    +
  • +
  • + + +
    ${LabelIdentificationFieldHelp}
    +
  • +
  • + + +
    ${LabelIdentificationFieldHelp}
    +
  • +
  • + + +
    ${LabelIdentificationFieldHelp}
    +
  • +
+ +

+ ${HeaderHttpHeaders} + +

+
+
+

${HeaderDisplaySettings}

@@ -232,64 +291,6 @@
-
- -

${HeaderIdentificationCriteriaHelp}

-
- - -

- ${HeaderHttpHeaders} - -

-
-

${HeaderDirectPlayProfileHelp}

diff --git a/dashboard-ui/scripts/useredit.js b/dashboard-ui/scripts/useredit.js index a95d0db840..5bbb7169ec 100644 --- a/dashboard-ui/scripts/useredit.js +++ b/dashboard-ui/scripts/useredit.js @@ -118,13 +118,16 @@ url: linkUrl, data: { ConnectUsername: enteredConnectUsername - } + }, + dataType: 'json' - }).done(function () { + }).done(function (result) { + + var msgKey = result.IsPending ? 'MessagePendingMediaBrowserAccountAdded' : 'MessageMediaBrowserAccountAdded'; Dashboard.alert({ - message: Globalize.translate('MessageMediaBrowserAccontAdded'), + message: Globalize.translate(msgKey), title: Globalize.translate('HeaderMediaBrowserAccountAdded'), callback: function () {