Made dialogs draggable.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@243 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
8633b20392
commit
ff94de5900
@ -17,6 +17,8 @@ DialogSystem.showDialog = function(elmt, onCancel) {
|
|||||||
container.css("top", Math.round((overlay.height() - elmt.height()) / 2) + "px");
|
container.css("top", Math.round((overlay.height() - elmt.height()) / 2) + "px");
|
||||||
elmt.css("visibility", "visible");
|
elmt.css("visibility", "visible");
|
||||||
|
|
||||||
|
container.draggable({ handle: '.dialog-header', cursor: 'move' });
|
||||||
|
|
||||||
var layer = {
|
var layer = {
|
||||||
overlay: overlay,
|
overlay: overlay,
|
||||||
container: container,
|
container: container,
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: white;
|
color: white;
|
||||||
|
cursor: move;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-body {
|
.dialog-body {
|
||||||
|
Loading…
Reference in New Issue
Block a user