[gitg/wip/techlivezh/diff-view-clean-up: 4/21] Use jQuery method like the rest



commit 99f1e8a2136c9b34dd63831be8f4ffd681ed9fb8
Author: Techlive Zheng <techlivezheng gmail com>
Date:   Mon Dec 9 00:47:41 2013 +0800

    Use jQuery method like the rest

 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]