You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2013/11/20 13:52:05 UTC
[2/5] git commit: WICKET-5420 Make UploadProgressBar easier to extend
WICKET-5420 Make UploadProgressBar easier to extend
Allow to set the value of the 'display' property with Wicket.DOM.show()
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/02e4672e
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/02e4672e
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/02e4672e
Branch: refs/heads/master
Commit: 02e4672e7c6a3cffc5768e26888f8f9b5bf21197
Parents: 336b95b
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Wed Nov 20 14:25:48 2013 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Wed Nov 20 14:46:14 2013 +0200
----------------------------------------------------------------------
.../org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/02e4672e/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
index 51338a0..225b6f1 100644
--- a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
+++ b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
@@ -1522,11 +1522,16 @@
*/
DOM: {
- /** shows an element */
- show: function (e) {
+ /**
+ * Shows an element
+ * @param {HTMLElement} e The HTML element to show
+ * @param {String} display The value of CSS display property to use, e
+ * .g. 'block', 'inline'. Optional
+ */
+ show: function (e, display) {
e = Wicket.$(e);
if (e !== null) {
- e.style.display = "";
+ e.style.display = display || "";
}
},