Permalink
Browse files

update für opa 0.9.4

  • Loading branch information...
1 parent fb5ee33 commit 039ce64d2a2c7ac11cfc9ed15da314ce2fa34b78 @klimacampimrheinland klimacampimrheinland committed Jul 5, 2012
Showing with 4 additions and 14 deletions.
  1. +1 −1 Makefile
  2. +3 −13 jquery-ui-demo.opa
View
@@ -13,7 +13,7 @@ OTHER_DEPENDS =
#Compiler variables
OPACOMPILER = opa
-MINIMAL_VERSION = 1150
+MINIMAL_VERSION = 0
FLAG = --minimal-version $(MINIMAL_VERSION) -v
PORT = 8080
View
@@ -6,21 +6,11 @@ module Draggable {
demo =
{ name: "Draggable"
, pages:
- [ {name: "Default-sort", show: default_functionality }
- ,{name: "on_update-drag" , show: on_update_demo }
+ [ {name: "drag" , show: on_update_demo }
]
}
- client function default_functionality(){
- function mk_draggable(_) {
- jQueryUI.Draggable.mk_draggable(#draggable)
- //return js_void;
- }
-
- <div style="background:#cccccc" onready={mk_draggable}>bla</div>
-
- }
client function on_update_demo(){
function mk_draggable(_) {
@@ -82,7 +72,7 @@ module Sortable {
}
-demos = [Sortable.demo]
+demos = [Sortable.demo, Draggable.demo]
function mk_demo(demo) {
function show_demo(gen)(_event) {
@@ -116,7 +106,7 @@ function page() {
Server.start(Server.http,
[ {resources: @static_resource_directory("resources")}
- , {register: ["resources/bootstrap.css", "resources/style.css", "resources/bootstrap.js"]}
+ , {register:{css: ["resources/bootstrap.css", "resources/style.css", "resources/bootstrap.js"]}}
, {title: "JQuery-UI in Opa", ~page}
]
)

0 comments on commit 039ce64

Please sign in to comment.