This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.onerror = function(message) { | |
| top.location.href = 'http://stackoverflow.com/search?q=' + | |
| encodeURIComponent(message + ' [js]'); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| createsitecolumn: function () { | |
| var fieldschema = '<Field Type="' + sitecolumntype + '" Name="' + sitecolumnname + '" DisplayName="' + sitecolumndisplayname + '" Group="JSOM Provisioned Columns" />'; | |
| var dfd = $.Deferred(); | |
| var ctx = getContext(); | |
| var appctx = getAppContextSite(ctx); | |
| var targetWeb = appctx.get_site().get_rootWeb(); | |
| var fields = targetWeb.get_fields() |