[gitg/wip/techlivezh/diff-view-clean-up: 4/21] Use jQuery method like the rest
- From: Techlive Zheng <techlivezh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/wip/techlivezh/diff-view-clean-up: 4/21] Use jQuery method like the rest
- Date: Sat, 21 Dec 2013 16:40:17 +0000 (UTC)
commit ec418043e63e0672178b80b4c34ac70a1f8fffb5
Author: Techlive Zheng <techlivezheng gmail com>
Date: Mon Dec 9 00:47:41 2013 +0800
Use jQuery method like the rest
https://bugzilla.gnome.org/show_bug.cgi?id=720886
libgitg/resources/diff-view.js | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libgitg/resources/diff-view.js b/libgitg/resources/diff-view.js
index 1b749ac..7e82ace 100644
--- a/libgitg/resources/diff-view.js
+++ b/libgitg/resources/diff-view.js
@@ -148,7 +148,11 @@ function update_diff(id, lsettings)
if (eta > 1000)
{
// Show the progress
- content.innerHTML = '<div class="loading">' + settings.strings.loading_diff +
'</div>.';
+ $(content).html('\
+ <div class="loading">\
+ ' + settings.strings.loading_diff + '\
+ </div>\
+ ');
}
html_builder_progress_timeout = 0;
@@ -176,7 +180,7 @@ function update_diff(id, lsettings)
html_builder_progress_timeout = 0;
}
- content.innerHTML = event.data.diff_html;
+ $(content).html(event.data.diff_html);
$(".expander").click(function()
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]