gd-sprest 8.1.6 → 8.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/helper/spCfg.js +1 -1
- package/build/helper/webpart.js +1 -1
- package/build/rest.js +1 -1
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +1 -1
package/build/helper/spCfg.js
CHANGED
|
@@ -68,7 +68,7 @@ exports.SPConfig = function (cfg, webUrl) {
|
|
|
68
68
|
__metadata: {
|
|
69
69
|
type: "SP.ContentTypeId"
|
|
70
70
|
},
|
|
71
|
-
StringValue: parentInfo.Id + lib_1.ContextInfo.generateGUID().replace(/-/g, "")
|
|
71
|
+
StringValue: parentInfo.Id + (list ? "00" : "") + lib_1.ContextInfo.generateGUID().replace(/-/g, "")
|
|
72
72
|
}
|
|
73
73
|
}).execute(resolve, reject);
|
|
74
74
|
});
|
package/build/helper/webpart.js
CHANGED
|
@@ -246,7 +246,7 @@ var _WebPart = /** @class */ (function () {
|
|
|
246
246
|
return ribbon_1.Ribbon.PageState.Handlers.isInEditMode;
|
|
247
247
|
}
|
|
248
248
|
// Get the form
|
|
249
|
-
var form = document.forms[MSOWebPartPageFormName];
|
|
249
|
+
var form = MSOWebPartPageFormName ? document.forms[MSOWebPartPageFormName] : null;
|
|
250
250
|
if (form) {
|
|
251
251
|
// Get the wiki page mode
|
|
252
252
|
var wikiPageMode = form._wikiPageMode ? form._wikiPageMode.value : null;
|
package/build/rest.js
CHANGED