Commit 6c6f8514 authored by techird's avatar techird

draggable

parent a84f986f
...@@ -36,6 +36,7 @@ $dependency = Array( ...@@ -36,6 +36,7 @@ $dependency = Array(
,'src/module/basestyle.js' ,'src/module/basestyle.js'
,'src/module/font.js' ,'src/module/font.js'
,'src/module/zoom.js' ,'src/module/zoom.js'
,'src/ui/jquery-ui-1.10.4.custom.min.js'
,'src/ui/widget.js' ,'src/ui/widget.js'
,'src/ui/button.js' ,'src/ui/button.js'
,'src/ui/toolbar.js' ,'src/ui/toolbar.js'
......
This diff is collapsed.
...@@ -43,6 +43,10 @@ KM.ui.define( 'modal', { ...@@ -43,6 +43,10 @@ KM.ui.define( 'modal', {
$( '[data-hide="modal"],[data-ok="modal"]', me.root() ).hover( function () { $( '[data-hide="modal"],[data-ok="modal"]', me.root() ).hover( function () {
$( this ).toggleClass( 'kmui-hover' ) $( this ).toggleClass( 'kmui-hover' )
} ); } );
setTimeout(function() {
$('.kmui-modal').draggable({ handle: '.kmui-modal-header' });
}, 100);
}, },
toggle: function () { toggle: function () {
var me = this; var me = this;
...@@ -65,7 +69,9 @@ KM.ui.define( 'modal', { ...@@ -65,7 +69,9 @@ KM.ui.define( 'modal', {
.show() .show()
.focus() .focus()
.trigger( 'aftershow' ); .trigger( 'aftershow' );
} ) } );
$('.kmui-modal').draggable({ handle: '.kmui-modal-header' });
}, },
showTip: function ( text ) { showTip: function ( text ) {
$( '.kmui-modal-tip', this.root() ).html( text ).fadeIn(); $( '.kmui-modal-tip', this.root() ).html( text ).fadeIn();
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
.kmui-modal-header { .kmui-modal-header {
padding: 5px 10px; padding: 5px 10px;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
cursor: move;
} }
.kmui-modal-header .kmui-close { .kmui-modal-header .kmui-close {
float: right; float: right;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment