You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2014/09/22 13:43:06 UTC

git commit: AMBARI-7428 Slider View: Even successful actions showing error dialogs. (atkach)

Repository: ambari
Updated Branches:
  refs/heads/trunk 3590d7d41 -> 6236d6245


AMBARI-7428 Slider View: Even successful actions showing error dialogs. (atkach)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/6236d624
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/6236d624
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/6236d624

Branch: refs/heads/trunk
Commit: 6236d6245413eadf794c266c7f953cd4548cf2b1
Parents: 3590d7d
Author: atkach <at...@hortonworks.com>
Authored: Mon Sep 22 14:40:28 2014 +0300
Committer: atkach <at...@hortonworks.com>
Committed: Mon Sep 22 14:40:28 2014 +0300

----------------------------------------------------------------------
 .../views/slider/src/main/resources/ui/app/helpers/ajax.js    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6236d624/contrib/views/slider/src/main/resources/ui/app/helpers/ajax.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/helpers/ajax.js b/contrib/views/slider/src/main/resources/ui/app/helpers/ajax.js
index ea01d82..5ecd9c8 100644
--- a/contrib/views/slider/src/main/resources/ui/app/helpers/ajax.js
+++ b/contrib/views/slider/src/main/resources/ui/app/helpers/ajax.js
@@ -118,7 +118,8 @@ var urls = {
     format: function (data) {
       return {
         type: 'PUT',
-        data: JSON.stringify(data.data)
+        data: JSON.stringify(data.data),
+        dataType: 'text'
       }
     }
   },
@@ -133,6 +134,7 @@ var urls = {
       return {
         type: 'POST',
         data: JSON.stringify(data.data),
+        dataType: 'text',
         showErrorPopup: true
       }
     }
@@ -144,6 +146,7 @@ var urls = {
     format: function () {
       return {
         method: 'DELETE',
+        dataType: 'text',
         showErrorPopup: true
       }
     }
@@ -159,6 +162,7 @@ var urls = {
       return {
         method: 'PUT',
         data: JSON.stringify(data.data),
+        dataType: 'text',
         showErrorPopup: true
       }
     }
@@ -173,6 +177,7 @@ var urls = {
       return {
         method: 'PUT',
         data: JSON.stringify(data.data),
+        dataType: 'text',
         showErrorPopup: true
       }
     }