renamed JS function

This commit is contained in:
Andreas Preikschat 2013-03-05 11:36:41 +01:00
parent fee7797be1
commit a835930990
2 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ sup {
window.setTimeout(function(){timer = null;}, 400); window.setTimeout(function(){timer = null;}, 400);
} }
function show_text_complete(){ function show_text_completed(){
return (timer == null); return (timer == null);
} }
</script> </script>

View File

@ -353,7 +353,7 @@ class MainDisplay(Display):
# Wait for the fade to finish before geting the preview. # Wait for the fade to finish before geting the preview.
# Important otherwise preview will have incorrect text if at all! # Important otherwise preview will have incorrect text if at all!
if self.serviceItem.themedata and self.serviceItem.themedata.display_slide_transition: if self.serviceItem.themedata and self.serviceItem.themedata.display_slide_transition:
while not self.frame.evaluateJavaScript(u'show_text_complete()'): while not self.frame.evaluateJavaScript(u'show_text_completed()'):
self.application.process_events() self.application.process_events()
# Wait for the webview to update before getting the preview. # Wait for the webview to update before getting the preview.
# Important otherwise first preview will miss the background ! # Important otherwise first preview will miss the background !