Skip to content

Commit

Permalink
update für opa 0.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
klimacampimrheinland committed Jul 5, 2012
1 parent fb5ee33 commit 039ce64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -13,7 +13,7 @@ OTHER_DEPENDS =


#Compiler variables #Compiler variables
OPACOMPILER = opa OPACOMPILER = opa
MINIMAL_VERSION = 1150 MINIMAL_VERSION = 0
FLAG = --minimal-version $(MINIMAL_VERSION) -v FLAG = --minimal-version $(MINIMAL_VERSION) -v
PORT = 8080 PORT = 8080


Expand Down
16 changes: 3 additions & 13 deletions jquery-ui-demo.opa
Expand Up @@ -6,21 +6,11 @@ module Draggable {
demo = demo =
{ name: "Draggable" { name: "Draggable"
, pages: , pages:
[ {name: "Default-sort", show: default_functionality } [ {name: "drag" , show: on_update_demo }
,{name: "on_update-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(){ client function on_update_demo(){
function mk_draggable(_) { function mk_draggable(_) {
Expand Down Expand Up @@ -82,7 +72,7 @@ module Sortable {


} }


demos = [Sortable.demo] demos = [Sortable.demo, Draggable.demo]


function mk_demo(demo) { function mk_demo(demo) {
function show_demo(gen)(_event) { function show_demo(gen)(_event) {
Expand Down Expand Up @@ -116,7 +106,7 @@ function page() {


Server.start(Server.http, Server.start(Server.http,
[ {resources: @static_resource_directory("resources")} [ {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} , {title: "JQuery-UI in Opa", ~page}
] ]
) )

0 comments on commit 039ce64

Please sign in to comment.