Skip to content
Browse files

Binding jQueryUI basic Sortable functions.

  • Loading branch information...
1 parent c490ceb commit 2468a73ba8f3be91488a3178fdc3139515928809 @akoprow akoprow committed Feb 25, 2012
Showing with 31 additions and 2 deletions.
  1. +15 −1 packages/jQueryUI/jQueryUI.opa
  2. +1 −1 packages/jQueryUI/jQueryUI/Makefile
  3. +15 −0 packages/jQueryUI/jQueryUI/jQueryUI.js
View
16 packages/jQueryUI/jQueryUI.opa
@@ -2,4 +2,18 @@ package jQueryUI
module jQueryUI {
-}
+ module Sortable {
+
+ function void mk_sortable(dom) {
+ elt = Dom.of_selection(dom)
+ %%JQueryUI.mk_sortable%%(elt)
+ }
+
+ function void disable_selection(dom) {
+ elt = Dom.of_selection(dom)
+ %%JQueryUI.disable_selection%%(elt)
+ }
+
+ }
+
+}
View
2 packages/jQueryUI/jQueryUI/Makefile
@@ -2,7 +2,7 @@
# USER VARIABLES
MKLIB = opa-plugin-builder
PLUGNAME = jQueryUI.opp
-SRC = ui/jquery-ui.js
+SRC = ui/jquery-ui.js jQueryUI.js
########################################
# MAKEFILE VARIABLES
View
15 packages/jQueryUI/jQueryUI/jQueryUI.js
@@ -0,0 +1,15 @@
+##extern-type Dom.private.element
+
+##register mk_sortable: Dom.private.element -> void
+##args(dom)
+{
+ dom.sortable();
+ return js_void;
+}
+
+##register disable_selection: Dom.private.element -> void
+##args(dom)
+{
+ dom.disableSelection();
+ return js_void;
+}

0 comments on commit 2468a73

Please sign in to comment.
Something went wrong with that request. Please try again.