2014-10-01 10:05:04 +02:00
|
|
|
/*jshint -W083 */
|
2014-07-18 10:50:23 +02:00
|
|
|
|
2015-02-26 16:16:20 +01:00
|
|
|
(function ($, Version) {
|
|
|
|
var info, $container, librariesCache = {}, scriptsCache = {};
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
// Initialize
|
|
|
|
$(document).ready(function () {
|
|
|
|
// Get library info
|
2015-02-27 13:59:42 +01:00
|
|
|
info = H5PAdminIntegration.libraryInfo;
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
// Get and reset container
|
|
|
|
$container = $('#h5p-admin-container').html('<p>' + info.message + '</p>');
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
// Make it possible to select version
|
|
|
|
var $version = $(getVersionSelect(info.versions)).appendTo($container);
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
// Add "go" button
|
|
|
|
$('<button/>', {
|
|
|
|
class: 'h5p-admin-upgrade-button',
|
|
|
|
text: info.buttonLabel,
|
|
|
|
click: function () {
|
|
|
|
// Start new content upgrade
|
|
|
|
new ContentUpgrade($version.val());
|
|
|
|
}
|
|
|
|
}).appendTo($container);
|
2014-10-01 10:05:04 +02:00
|
|
|
});
|
2014-06-03 16:07:50 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Generate html for version select.
|
2014-10-01 10:05:04 +02:00
|
|
|
*
|
2014-06-03 16:07:50 +02:00
|
|
|
* @param {Object} versions
|
|
|
|
* @returns {String}
|
|
|
|
*/
|
|
|
|
var getVersionSelect = function (versions) {
|
|
|
|
var html = '';
|
|
|
|
for (var id in versions) {
|
|
|
|
html += '<option value="' + id + '">' + versions[id] + '</option>';
|
|
|
|
}
|
|
|
|
if (html !== '') {
|
|
|
|
html = '<select>' + html + '</select>';
|
|
|
|
return html;
|
|
|
|
}
|
|
|
|
};
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
/**
|
|
|
|
* Displays a throbber in the status field.
|
2014-10-01 10:05:04 +02:00
|
|
|
*
|
2014-06-13 15:02:26 +02:00
|
|
|
* @param {String} msg
|
|
|
|
* @returns {_L1.Throbber}
|
|
|
|
*/
|
|
|
|
function Throbber(msg) {
|
|
|
|
var $throbber = H5PUtils.throbber(msg);
|
|
|
|
$container.html('').append($throbber);
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
/**
|
|
|
|
* Makes it possible to set the progress.
|
2014-10-01 10:05:04 +02:00
|
|
|
*
|
2014-06-13 15:02:26 +02:00
|
|
|
* @param {String} progress
|
|
|
|
*/
|
|
|
|
this.setProgress = function (progress) {
|
|
|
|
$throbber.text(msg + ' ' + progress);
|
|
|
|
};
|
|
|
|
}
|
2014-06-03 16:07:50 +02:00
|
|
|
|
|
|
|
/**
|
2014-06-13 15:02:26 +02:00
|
|
|
* Start a new content upgrade.
|
2014-10-01 10:05:04 +02:00
|
|
|
*
|
2014-06-13 15:02:26 +02:00
|
|
|
* @param {Number} libraryId
|
|
|
|
* @returns {_L1.ContentUpgrade}
|
2014-06-03 16:07:50 +02:00
|
|
|
*/
|
2014-06-13 15:02:26 +02:00
|
|
|
function ContentUpgrade(libraryId) {
|
|
|
|
var self = this;
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
// Get selected version
|
2015-02-26 16:16:20 +01:00
|
|
|
self.version = new Version(info.versions[libraryId]);
|
|
|
|
self.version.libraryId = libraryId;
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
// Create throbber with loading text and progress
|
2014-06-16 14:04:53 +02:00
|
|
|
self.throbber = new Throbber(info.inProgress.replace('%ver', self.version));
|
2014-06-18 11:05:09 +02:00
|
|
|
|
2015-03-04 11:13:32 +01:00
|
|
|
self.started = new Date().getTime();
|
|
|
|
self.io = 0;
|
2015-02-26 16:16:20 +01:00
|
|
|
|
|
|
|
// Track number of working
|
|
|
|
self.working = 0;
|
|
|
|
|
|
|
|
var start = function () {
|
|
|
|
// Get the next batch
|
|
|
|
self.nextBatch({
|
|
|
|
libraryId: libraryId,
|
|
|
|
token: info.token
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
if (window.Worker !== undefined) {
|
|
|
|
// Prepare our workers
|
|
|
|
self.initWorkers();
|
|
|
|
start();
|
|
|
|
}
|
|
|
|
else {
|
2015-03-04 11:13:32 +01:00
|
|
|
// No workers, do the job ourselves
|
|
|
|
self.loadScript(info.scriptBaseUrl + '/h5p-content-upgrade-process.js' + info.buster, start);
|
2015-02-26 16:16:20 +01:00
|
|
|
}
|
2014-06-13 15:02:26 +02:00
|
|
|
}
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2015-02-26 16:16:20 +01:00
|
|
|
/**
|
|
|
|
* Initialize workers
|
|
|
|
*/
|
|
|
|
ContentUpgrade.prototype.initWorkers = function () {
|
|
|
|
var self = this;
|
|
|
|
|
|
|
|
// Determine number of workers (defaults to 4)
|
|
|
|
var numWorkers = (window.navigator !== undefined && window.navigator.hardwareConcurrency ? window.navigator.hardwareConcurrency : 4);
|
|
|
|
self.workers = new Array(numWorkers);
|
|
|
|
|
|
|
|
// Register message handlers
|
|
|
|
var messageHandlers = {
|
2015-08-26 15:58:49 +02:00
|
|
|
done: function (result) {
|
2018-08-30 12:33:24 +02:00
|
|
|
self.workDone(result.id, result.params, this);
|
2015-02-26 16:16:20 +01:00
|
|
|
},
|
|
|
|
error: function (error) {
|
|
|
|
self.printError(error.err);
|
|
|
|
|
|
|
|
// Stop everything
|
|
|
|
self.terminate();
|
|
|
|
},
|
2015-08-26 15:58:49 +02:00
|
|
|
loadLibrary: function (details) {
|
2015-02-26 16:16:20 +01:00
|
|
|
var worker = this;
|
|
|
|
self.loadLibrary(details.name, new Version(details.version), function (err, library) {
|
|
|
|
if (err) {
|
|
|
|
// Reset worker?
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
worker.postMessage({
|
|
|
|
action: 'libraryLoaded',
|
|
|
|
library: library
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
for (var i = 0; i < numWorkers; i++) {
|
2015-03-04 11:13:32 +01:00
|
|
|
self.workers[i] = new Worker(info.scriptBaseUrl + '/h5p-content-upgrade-worker.js' + info.buster);
|
2015-02-26 16:16:20 +01:00
|
|
|
self.workers[i].onmessage = function (event) {
|
|
|
|
if (event.data.action !== undefined && messageHandlers[event.data.action]) {
|
|
|
|
messageHandlers[event.data.action].call(this, event.data);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
/**
|
|
|
|
* Get the next batch and start processing it.
|
2014-10-01 10:05:04 +02:00
|
|
|
*
|
2014-06-13 15:02:26 +02:00
|
|
|
* @param {Object} outData
|
|
|
|
*/
|
|
|
|
ContentUpgrade.prototype.nextBatch = function (outData) {
|
|
|
|
var self = this;
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2015-03-04 11:13:32 +01:00
|
|
|
// Track time spent on IO
|
|
|
|
var start = new Date().getTime();
|
2014-07-18 10:50:23 +02:00
|
|
|
$.post(info.infoUrl, outData, function (inData) {
|
2015-03-04 11:13:32 +01:00
|
|
|
self.io += new Date().getTime() - start;
|
2014-06-03 16:07:50 +02:00
|
|
|
if (!(inData instanceof Object)) {
|
|
|
|
// Print errors from backend
|
2014-06-13 15:02:26 +02:00
|
|
|
return self.setStatus(inData);
|
2014-10-01 10:05:04 +02:00
|
|
|
}
|
2014-06-13 15:02:26 +02:00
|
|
|
if (inData.left === 0) {
|
2015-02-26 16:16:20 +01:00
|
|
|
var total = new Date().getTime() - self.started;
|
2015-03-04 11:13:32 +01:00
|
|
|
|
|
|
|
if (window.console && console.log) {
|
|
|
|
console.log('The upgrade process took ' + (total / 1000) + ' seconds. (' + (Math.round((self.io / (total / 100)) * 100) / 100) + ' % IO)' );
|
|
|
|
}
|
2015-02-26 16:16:20 +01:00
|
|
|
|
|
|
|
// Terminate workers
|
|
|
|
self.terminate();
|
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
// Nothing left to process
|
|
|
|
return self.setStatus(info.done);
|
2014-06-03 16:07:50 +02:00
|
|
|
}
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
self.left = inData.left;
|
|
|
|
self.token = inData.token;
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
// Start processing
|
2018-08-30 12:33:24 +02:00
|
|
|
self.processBatch(inData.params);
|
2014-06-03 16:07:50 +02:00
|
|
|
});
|
|
|
|
};
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
/**
|
|
|
|
* Set current status message.
|
2014-10-01 10:05:04 +02:00
|
|
|
*
|
2014-06-13 15:02:26 +02:00
|
|
|
* @param {String} msg
|
|
|
|
*/
|
|
|
|
ContentUpgrade.prototype.setStatus = function (msg) {
|
|
|
|
$container.html(msg);
|
|
|
|
};
|
2014-06-03 16:07:50 +02:00
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
/**
|
|
|
|
* Process the given parameters.
|
2014-10-01 10:05:04 +02:00
|
|
|
*
|
2014-06-13 15:02:26 +02:00
|
|
|
* @param {Object} parameters
|
|
|
|
*/
|
2018-08-30 12:33:24 +02:00
|
|
|
ContentUpgrade.prototype.processBatch = function (parameters) {
|
2014-06-13 15:02:26 +02:00
|
|
|
var self = this;
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2015-02-26 16:16:20 +01:00
|
|
|
// Track upgraded params
|
|
|
|
self.upgraded = {};
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2015-02-26 16:16:20 +01:00
|
|
|
// Track current batch
|
|
|
|
self.parameters = parameters;
|
|
|
|
|
|
|
|
// Create id mapping
|
|
|
|
self.ids = [];
|
|
|
|
for (var id in parameters) {
|
|
|
|
if (parameters.hasOwnProperty(id)) {
|
|
|
|
self.ids.push(id);
|
2014-09-29 17:13:47 +02:00
|
|
|
}
|
2015-02-26 16:16:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Keep track of current content
|
|
|
|
self.current = -1;
|
|
|
|
|
|
|
|
if (self.workers !== undefined) {
|
|
|
|
// Assign each worker content to upgrade
|
|
|
|
for (var i = 0; i < self.workers.length; i++) {
|
|
|
|
self.assignWork(self.workers[i]);
|
2014-09-29 17:13:47 +02:00
|
|
|
}
|
2015-02-26 16:16:20 +01:00
|
|
|
}
|
|
|
|
else {
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2015-02-26 16:16:20 +01:00
|
|
|
self.assignWork();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
ContentUpgrade.prototype.assignWork = function (worker) {
|
|
|
|
var self = this;
|
|
|
|
|
|
|
|
var id = self.ids[self.current + 1];
|
|
|
|
if (id === undefined) {
|
|
|
|
return false; // Out of work
|
|
|
|
}
|
|
|
|
self.current++;
|
|
|
|
self.working++;
|
|
|
|
|
|
|
|
if (worker) {
|
|
|
|
worker.postMessage({
|
|
|
|
action: 'newJob',
|
|
|
|
id: id,
|
|
|
|
name: info.library.name,
|
|
|
|
oldVersion: info.library.version,
|
|
|
|
newVersion: self.version.toString(),
|
2018-08-30 12:33:24 +02:00
|
|
|
params: self.parameters[id]
|
2015-02-26 16:16:20 +01:00
|
|
|
});
|
|
|
|
}
|
|
|
|
else {
|
2018-08-30 12:33:24 +02:00
|
|
|
new H5P.ContentUpgradeProcess(info.library.name, new Version(info.library.version), self.version, self.parameters[id], id, function loadLibrary(name, version, next) {
|
2015-08-26 15:58:49 +02:00
|
|
|
self.loadLibrary(name, version, function (err, library) {
|
2015-02-26 16:16:20 +01:00
|
|
|
if (library.upgradesScript) {
|
|
|
|
self.loadScript(library.upgradesScript, function (err) {
|
|
|
|
if (err) {
|
|
|
|
err = info.errorScript.replace('%lib', name + ' ' + version);
|
|
|
|
}
|
|
|
|
next(err, library);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
next(null, library);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2018-08-30 12:33:24 +02:00
|
|
|
}, function done(err, result) {
|
2014-09-29 17:13:47 +02:00
|
|
|
if (err) {
|
2015-02-26 16:16:20 +01:00
|
|
|
self.printError(err);
|
|
|
|
return ;
|
2014-06-13 15:02:26 +02:00
|
|
|
}
|
2014-09-29 17:13:47 +02:00
|
|
|
|
2018-08-30 12:33:24 +02:00
|
|
|
self.workDone(id, result);
|
2014-06-13 15:02:26 +02:00
|
|
|
});
|
2015-02-26 16:16:20 +01:00
|
|
|
}
|
|
|
|
};
|
2014-06-13 15:02:26 +02:00
|
|
|
|
2015-02-26 16:16:20 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2018-08-30 12:33:24 +02:00
|
|
|
ContentUpgrade.prototype.workDone = function (id, result, worker) {
|
2015-02-26 16:16:20 +01:00
|
|
|
var self = this;
|
2014-06-18 11:05:09 +02:00
|
|
|
|
2015-02-26 16:16:20 +01:00
|
|
|
self.working--;
|
|
|
|
self.upgraded[id] = result;
|
|
|
|
|
|
|
|
// Update progress message
|
|
|
|
self.throbber.setProgress(Math.round((info.total - self.left + self.current) / (info.total / 100)) + ' %');
|
|
|
|
|
|
|
|
// Assign next job
|
|
|
|
if (self.assignWork(worker) === false && self.working === 0) {
|
|
|
|
// All workers have finsihed.
|
2014-06-13 15:02:26 +02:00
|
|
|
self.nextBatch({
|
|
|
|
libraryId: self.version.libraryId,
|
|
|
|
token: self.token,
|
2018-08-30 12:33:24 +02:00
|
|
|
params: JSON.stringify(self.upgraded)
|
2014-06-13 15:02:26 +02:00
|
|
|
});
|
2015-02-26 16:16:20 +01:00
|
|
|
}
|
2014-06-13 15:02:26 +02:00
|
|
|
};
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
/**
|
2014-10-01 10:05:04 +02:00
|
|
|
*
|
2014-06-13 15:02:26 +02:00
|
|
|
*/
|
2015-02-26 16:16:20 +01:00
|
|
|
ContentUpgrade.prototype.terminate = function () {
|
2014-06-13 15:02:26 +02:00
|
|
|
var self = this;
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2015-02-26 16:16:20 +01:00
|
|
|
if (self.workers) {
|
|
|
|
// Stop all workers
|
|
|
|
for (var i = 0; i < self.workers.length; i++) {
|
|
|
|
self.workers[i].terminate();
|
2014-06-16 13:52:35 +02:00
|
|
|
}
|
2015-02-26 16:16:20 +01:00
|
|
|
}
|
2014-06-13 15:02:26 +02:00
|
|
|
};
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2015-02-26 16:16:20 +01:00
|
|
|
var librariesLoadedCallbacks = {};
|
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
/**
|
|
|
|
* Load library data needed for content upgrade.
|
2014-10-01 10:05:04 +02:00
|
|
|
*
|
2014-06-13 15:02:26 +02:00
|
|
|
* @param {String} name
|
|
|
|
* @param {Version} version
|
|
|
|
* @param {Function} next
|
|
|
|
*/
|
|
|
|
ContentUpgrade.prototype.loadLibrary = function (name, version, next) {
|
|
|
|
var self = this;
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2014-08-28 09:40:02 +02:00
|
|
|
var key = name + '/' + version.major + '/' + version.minor;
|
2015-02-26 16:16:20 +01:00
|
|
|
|
|
|
|
if (librariesCache[key] === true) {
|
|
|
|
// Library is being loaded, que callback
|
|
|
|
if (librariesLoadedCallbacks[key] === undefined) {
|
|
|
|
librariesLoadedCallbacks[key] = [next];
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
librariesLoadedCallbacks[key].push(next);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
else if (librariesCache[key] !== undefined) {
|
2014-08-28 09:40:02 +02:00
|
|
|
// Library has been loaded before. Return cache.
|
|
|
|
next(null, librariesCache[key]);
|
|
|
|
return;
|
|
|
|
}
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2015-03-04 11:13:32 +01:00
|
|
|
// Track time spent loading
|
|
|
|
var start = new Date().getTime();
|
2015-02-26 16:16:20 +01:00
|
|
|
librariesCache[key] = true;
|
2014-06-13 15:02:26 +02:00
|
|
|
$.ajax({
|
|
|
|
dataType: 'json',
|
2014-08-28 09:40:02 +02:00
|
|
|
cache: true,
|
|
|
|
url: info.libraryBaseUrl + '/' + key
|
2014-06-13 15:02:26 +02:00
|
|
|
}).fail(function () {
|
2015-03-04 11:13:32 +01:00
|
|
|
self.io += new Date().getTime() - start;
|
2014-06-16 14:04:53 +02:00
|
|
|
next(info.errorData.replace('%lib', name + ' ' + version));
|
2014-06-13 15:02:26 +02:00
|
|
|
}).done(function (library) {
|
2015-03-04 11:13:32 +01:00
|
|
|
self.io += new Date().getTime() - start;
|
2014-08-28 09:40:02 +02:00
|
|
|
librariesCache[key] = library;
|
2015-02-26 16:16:20 +01:00
|
|
|
next(null, library);
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2015-02-26 16:16:20 +01:00
|
|
|
if (librariesLoadedCallbacks[key] !== undefined) {
|
|
|
|
for (var i = 0; i < librariesLoadedCallbacks[key].length; i++) {
|
|
|
|
librariesLoadedCallbacks[key][i](null, library);
|
|
|
|
}
|
2014-06-13 15:02:26 +02:00
|
|
|
}
|
2015-02-26 16:16:20 +01:00
|
|
|
delete librariesLoadedCallbacks[key];
|
2014-06-13 15:02:26 +02:00
|
|
|
});
|
|
|
|
};
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
/**
|
|
|
|
* Load script with upgrade hooks.
|
2014-10-01 10:05:04 +02:00
|
|
|
*
|
2014-06-13 15:02:26 +02:00
|
|
|
* @param {String} url
|
|
|
|
* @param {Function} next
|
|
|
|
*/
|
|
|
|
ContentUpgrade.prototype.loadScript = function (url, next) {
|
2015-03-04 11:30:20 +01:00
|
|
|
var self = this;
|
|
|
|
|
2015-02-26 16:16:20 +01:00
|
|
|
if (scriptsCache[url] !== undefined) {
|
|
|
|
next();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2015-03-04 11:13:32 +01:00
|
|
|
// Track time spent loading
|
|
|
|
var start = new Date().getTime();
|
2014-06-13 15:02:26 +02:00
|
|
|
$.ajax({
|
|
|
|
dataType: 'script',
|
|
|
|
cache: true,
|
|
|
|
url: url
|
|
|
|
}).fail(function () {
|
2015-03-04 11:13:32 +01:00
|
|
|
self.io += new Date().getTime() - start;
|
2014-06-16 14:04:53 +02:00
|
|
|
next(true);
|
2014-06-13 15:02:26 +02:00
|
|
|
}).done(function () {
|
2015-02-26 16:16:20 +01:00
|
|
|
scriptsCache[url] = true;
|
2015-03-04 11:13:32 +01:00
|
|
|
self.io += new Date().getTime() - start;
|
2014-06-13 15:02:26 +02:00
|
|
|
next();
|
|
|
|
});
|
|
|
|
};
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2014-06-13 15:02:26 +02:00
|
|
|
/**
|
2014-10-01 10:05:04 +02:00
|
|
|
*
|
2014-06-13 15:02:26 +02:00
|
|
|
*/
|
2015-02-26 16:16:20 +01:00
|
|
|
ContentUpgrade.prototype.printError = function (error) {
|
2015-03-04 11:30:20 +01:00
|
|
|
var self = this;
|
|
|
|
|
2015-02-26 16:16:20 +01:00
|
|
|
if (error.type === 'errorParamsBroken') {
|
2015-03-04 11:30:20 +01:00
|
|
|
error = info.errorContent.replace('%id', error.id) + ' ' + info.errorParamsBroken;
|
2014-06-13 15:02:26 +02:00
|
|
|
}
|
2015-02-26 16:16:20 +01:00
|
|
|
else if (error.type === 'scriptMissing') {
|
2015-03-04 11:30:20 +01:00
|
|
|
error = info.errorScript.replace('%lib', error.library);
|
2014-06-16 13:52:35 +02:00
|
|
|
}
|
2014-10-01 10:05:04 +02:00
|
|
|
|
2015-03-04 11:30:20 +01:00
|
|
|
self.setStatus('<p>' + info.error + '<br/>' + error + '</p>');
|
2014-06-13 15:02:26 +02:00
|
|
|
};
|
|
|
|
|
2015-02-26 16:16:20 +01:00
|
|
|
})(H5P.jQuery, H5P.Version);
|