From 27038a906e28ddff0af11d5b78cb6331824cf08b Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 14 Sep 2014 19:39:06 -0400 Subject: [PATCH] update connect link text --- dashboard-ui/dlnaprofile.html | 121 ++++++++++++++++--------------- dashboard-ui/scripts/useredit.js | 9 ++- 2 files changed, 67 insertions(+), 63 deletions(-) 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 () {