[gitg] Hide parents chooser if necessary
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Hide parents chooser if necessary
- Date: Sat, 20 Dec 2014 10:59:47 +0000 (UTC)
commit 8ce968ec7b22117b4b79e675670ebcf0a85471a1
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sat Dec 20 11:59:17 2014 +0100
Hide parents chooser if necessary
libgitg/resources/diff-view.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libgitg/resources/diff-view.js b/libgitg/resources/diff-view.js
index 8ab37ca..589b5ce 100644
--- a/libgitg/resources/diff-view.js
+++ b/libgitg/resources/diff-view.js
@@ -192,6 +192,10 @@ function write_commit(content, commit)
elems.parent_chooser.html([span, chooser]);
}
+ else
+ {
+ elems.parent_chooser.html('');
+ }
if (commit.parents.length > 1 && settings.show_parents)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]