Browse Source

Fixes to the localization nag

pull/1129/head
jlukic 10 years ago
parent
commit
11497b407e
2 changed files with 15 additions and 4 deletions
  1. 17
      server/files/javascript/semantic.js
  2. 2
      server/layouts/default.html.eco

17
server/files/javascript/semantic.js

@ -70,6 +70,13 @@ semantic.ready = function() {
$code = $('div.code').not('.existing'),
$existingCode = $('.existing.code'),
requestAnimationFrame = window.requestAnimationFrame
|| window.mozRequestAnimationFrame
|| window.webkitRequestAnimationFrame
|| window.msRequestAnimationFrame
|| function(callback) { setTimeout(callback, 0); },
// alias
handler
;
@ -932,10 +939,14 @@ semantic.ready = function() {
.find('.complete')
.html(percent)
.end()
.modal('show', function() {
$('.language.modal .progress .bar').css('width', percent + '%');
})
;
requestAnimationFrame(function() {
$('.language.modal')
.modal('show', function() {
$('.language.modal .progress .bar').css('width', percent + '%');
})
;
});
}
}
})

2
server/layouts/default.html.eco

@ -322,7 +322,7 @@
</div>
<div class="description">
<p>This translation is only <b><span class="complete"></span>%</b> complete!</p>
<div class="ui teal active striped progress">
<div class="ui teal active progress">
<div class="bar"></div>
</div>
<p>We need your help to make Semantic available to people who speak your language.</p>

Loading…
Cancel
Save