|
|
@@ -142,7 +142,7 @@ define(['angular', 'toaster', 'big'], function(angular, big) {
|
|
|
}
|
|
|
if (data.content) {
|
|
|
if (data.content == window.location.href) {
|
|
|
- // window.location.reload();
|
|
|
+ window.location.reload();
|
|
|
} else {
|
|
|
window.location.href = data.content;
|
|
|
}
|
|
|
@@ -158,12 +158,12 @@ define(['angular', 'toaster', 'big'], function(angular, big) {
|
|
|
dataType: "jsonp",
|
|
|
jsonp: "callback",
|
|
|
jsonpCallback: "successCallback",
|
|
|
- success: function (data) {
|
|
|
- console.log(data);
|
|
|
+ success: function (response) {
|
|
|
+ console.log(response);
|
|
|
refresh(data);
|
|
|
},
|
|
|
- error: function (data) {
|
|
|
- console.log(data);
|
|
|
+ error: function (response) {
|
|
|
+ console.log(response);
|
|
|
refresh(data);
|
|
|
}
|
|
|
});
|