Commit b50f6ede authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1487922: do the loading spinner in non .gif way



behatnotneeded: is a style change

Change-Id: Ieb4d965f166c54be23f3f81d47343c56753fcfe6
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent b485db44
......@@ -99,7 +99,7 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
// Display upload status
self.nextupload++;
var message = makeMessage(DIV(null,
IMG({'src':get_themeurl('images/loading.gif')}), ' ',
SPAN({'class': 'icon-spinner icon-pulse icon icon-lg'}), ' ',
get_string('uploadingfiletofolder',e.name,self.foldername)
), 'info');
setNodeAttribute(message, 'id', 'uploadstatusline' + self.nextupload);
......@@ -120,7 +120,7 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
var localname = $(self.id + '_userfile').files[i].fileName;
}
var message = makeMessage(DIV(null,
IMG({'src':get_themeurl('images/loading.gif')}), ' ',
SPAN({'class': 'icon-spinner icon-pulse icon icon-lg'}), ' ',
get_string('uploadingfiletofolder',localname,self.foldername)
), 'ok');
setNodeAttribute(message, 'id', 'uploadstatusline' + self.nextupload);
......
......@@ -785,7 +785,7 @@ function augment_tags_control(elem, returnContainer) {
connect(showLink, 'onclick', function (e) {
e.stop();
replaceChildNodes(tagContainer, get_string('loading') + ' ', IMG({'src':get_themeurl('images/loading.gif')}));
replaceChildNodes(tagContainer, get_string('loading') + ' ', SPAN({'class': 'icon-spinner icon-pulse icon icon-lg'}));
sendjsonrequest(config.wwwroot + 'json/taglist.php', {}, 'GET', function (data) {
replaceChildNodes(tagContainer);
if (data.length == 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment