Files
edx-platform/cms/static/js/models/custom_sync_xblock_info.js
2023-05-09 13:53:54 +05:00

11 lines
419 B
JavaScript

define(['js/models/xblock_info'],
function(XBlockInfo) {
var CustomSyncXBlockInfo = XBlockInfo.extend({
sync: function(method, model, options) {
options.url = (this.urlRoots[method] || this.urlRoot) + '/' + this.get('id');
return XBlockInfo.prototype.sync.call(this, method, model, options);
}
});
return CustomSyncXBlockInfo;
});