Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
UI: Reset the scroll-bar to the top of modal
[controller.git]
/
opendaylight
/
web
/
root
/
src
/
main
/
resources
/
js
/
lib.js
diff --git
a/opendaylight/web/root/src/main/resources/js/lib.js
b/opendaylight/web/root/src/main/resources/js/lib.js
index 64dc09890d6382dec4caacb2a26acd64296a37fd..bc922106eccc00274f3db94b0ca648b4512d8f4f 100644
(file)
--- a/
opendaylight/web/root/src/main/resources/js/lib.js
+++ b/
opendaylight/web/root/src/main/resources/js/lib.js
@@
-241,6
+241,9
@@
one.lib.modal = {
spawn : function(id, header, $body, footer) {
var $modal = one.lib.modal.clone(id);
one.lib.modal.populate($modal, header, $body, footer);
+ $modal.on('hide', function () {
+ $('.modal-body').scrollTop(0);
+ });
return $modal;
},
// empty modal