summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorKris De Volder2012-01-26 19:03:42 (EST)
committer John Arthorne2012-01-27 16:43:53 (EST)
commitbec3f4b33439b917f53a035a4ffee08f3982ee64 (patch)
treebd731d2f7ff224f26f16c24d5bc8e9e8fb2cda24
parent0e7d245ea93ab4cb31463a88a5c427263d5f687c (diff)
downloadorg.eclipse.orion.client-bec3f4b33439b917f53a035a4ffee08f3982ee64.zip
org.eclipse.orion.client-bec3f4b33439b917f53a035a4ffee08f3982ee64.tar.gz
org.eclipse.orion.client-bec3f4b33439b917f53a035a4ffee08f3982ee64.tar.bz2
Bug347058: make favourites disappear when it is empty
-rw-r--r--bundles/org.eclipse.orion.client.core/web/orion/widgets/OpenResourceDialog.js3
-rw-r--r--bundles/org.eclipse.orion.client.core/web/orion/widgets/templates/OpenResourceDialog.html1
2 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.orion.client.core/web/orion/widgets/OpenResourceDialog.js b/bundles/org.eclipse.orion.client.core/web/orion/widgets/OpenResourceDialog.js
index 933ba3a..7e6861b 100644
--- a/bundles/org.eclipse.orion.client.core/web/orion/widgets/OpenResourceDialog.js
+++ b/bundles/org.eclipse.orion.client.core/web/orion/widgets/OpenResourceDialog.js
@@ -140,8 +140,9 @@ var OpenResourceDialog = dojo.declare("orion.widgets.OpenResourceDialog", [dijit
col.appendChild(favLink);
}
dojo.place(table, that.favresults, "only");
+ dojo.place("<hr/>", that.favresults, "last");
} else {
- dojo.place("<div>No favorites</div>", that.favresults, "only");
+ dojo.empty(that.favresults);
}
that.decorateResult(that.favresults);
};
diff --git a/bundles/org.eclipse.orion.client.core/web/orion/widgets/templates/OpenResourceDialog.html b/bundles/org.eclipse.orion.client.core/web/orion/widgets/templates/OpenResourceDialog.html
index 12f67a3..31b7a1e 100644
--- a/bundles/org.eclipse.orion.client.core/web/orion/widgets/templates/OpenResourceDialog.html
+++ b/bundles/org.eclipse.orion.client.core/web/orion/widgets/templates/OpenResourceDialog.html
@@ -22,7 +22,6 @@
<div style="display:table-row">
<div dojoAttachPoint="favresults" style="max-height:400px; height:auto; overflow-y:auto;"></div>
</div>
- <hr />
<div style="display:table-row">
<div dojoAttachPoint="results" style="max-height:400px; height:auto; overflow-y:auto;"></div>
</div>