ymdp 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.7
|
@@ -28,7 +28,7 @@ OIB = {
|
|
28
28
|
var success;
|
29
29
|
|
30
30
|
success = function(response) {
|
31
|
-
response =
|
31
|
+
response = JSON.parse(response.data);
|
32
32
|
if (response.error) {
|
33
33
|
if (error_function) {
|
34
34
|
error_function(response);
|
@@ -113,7 +113,7 @@ OIB = {
|
|
113
113
|
if (debug) {
|
114
114
|
Debug.log("inside OIB.request: ", {
|
115
115
|
"oib_path": oib_path,
|
116
|
-
"params":
|
116
|
+
"params": JSON.stringify(params)
|
117
117
|
});
|
118
118
|
}
|
119
119
|
|
@@ -151,7 +151,7 @@ OIB = {
|
|
151
151
|
debug = !params["_hide_debug"];
|
152
152
|
|
153
153
|
if (debug) {
|
154
|
-
message = "OIB.error: " +
|
154
|
+
message = "OIB.error: " + JSON.stringify(response) + " calling url: " + url + "?" + $.param(params);
|
155
155
|
Debug.error(message);
|
156
156
|
}
|
157
157
|
},
|
@@ -66,7 +66,7 @@ YMDP.showError = function(options) {
|
|
66
66
|
params = {};
|
67
67
|
params["description"] = options["description"];
|
68
68
|
params["method_name"] = options["method"];
|
69
|
-
params["error"] =
|
69
|
+
params["error"] = JSON.stringify(options["error"]);
|
70
70
|
params["page"] = View.name;
|
71
71
|
|
72
72
|
Reporter.error(YMDP.guid, params);
|
@@ -84,16 +84,20 @@ YMDP.Init.after = function() {
|
|
84
84
|
|
85
85
|
// Execute the before, startup and after methods. Do not overwrite. (Change YMDP.Init.startup to create a custom initializer.)
|
86
86
|
YMDP.init = function() {
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
87
|
+
YUI().use('json', function (Y) {
|
88
|
+
window.JSON = Y.JSON;
|
89
|
+
|
90
|
+
Debug.log("OIB.init for view " + View.name, "<%= @message %>");
|
91
|
+
Logger.init();
|
92
|
+
Tags.init();
|
93
|
+
YMDP.Init.browser();
|
94
|
+
YMDP.Init.resources();
|
95
|
+
I18n.addLanguageToBody();
|
96
|
+
I18n.translateLoading();
|
97
|
+
I18n.translateError();
|
98
|
+
YMDP.Init.before();
|
99
|
+
YMDP.Init.startup();
|
100
|
+
});
|
97
101
|
};
|
98
102
|
|
99
103
|
YMDP.Init.browser = function() {
|
data/ymdp.gemspec
CHANGED
metadata
CHANGED