[gitg] Use jQuery like the rest



commit 83140557d99445e92da15f029587c0c150a8c7b9
Author: Techlive Zheng <techlivezheng gmail com>
Date:   Sun Dec 8 20:00:59 2013 +0800

    Use jQuery like the rest
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720886

 libgitg/resources/diff-view.js |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libgitg/resources/diff-view.js b/libgitg/resources/diff-view.js
index 63a2f74..d77b75a 100644
--- a/libgitg/resources/diff-view.js
+++ b/libgitg/resources/diff-view.js
@@ -130,11 +130,11 @@ function update_diff(id, lsettings)
                html_builder_worker.terminate();
        }
 
-       var content = document.getElementById('diff_content');
+       var content = $('#diff_content');
 
        if (typeof id == 'undefined')
        {
-               $(content).empty();
+               content.empty();
                return;
        }
 
@@ -160,11 +160,11 @@ function update_diff(id, lsettings)
                if (eta > 1000)
                {
                        // Show the progress
-                       content.innerHTML = '\
+                       content.html('\
                                <div class="loading">\
                                        ' + settings.strings.loading_diff + '\
                                </div>\
-                       ';
+                       ');
                }
 
                html_builder_progress_timeout = 0;
@@ -190,7 +190,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]