Skip to content

Instantly share code, notes, and snippets.

@ikiw
Last active August 29, 2015 14:01
Show Gist options
  • Save ikiw/375ef502d68127f75664 to your computer and use it in GitHub Desktop.
Save ikiw/375ef502d68127f75664 to your computer and use it in GitHub Desktop.
$.sap.require('sap.ui.thirdparty.jqueryui.jquery-ui-core');
$.sap.require('sap.ui.thirdparty.jqueryui.jquery-ui-widget');
$.sap.require('sap.ui.thirdparty.jqueryui.jquery-ui-mouse');
$.sap.require('sap.ui.thirdparty.jqueryui.jquery-ui-draggable');
$.sap.require('sap.ui.thirdparty.jqueryui.jquery-ui-sortable');
var oDummy = new sap.ui.core.Control();
sap.ui.core.Control.prototype.draggable = function(){
var id = this.getId();
$(document).ready(function(){
$('#'+id).draggable({
cancel :false
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment