Changeset 16712 for lang/actionscript/todoshare/index.cgi
- Timestamp:
- 07/27/08 19:01:40 (6 months ago)
- Files:
-
- 1 modified
-
lang/actionscript/todoshare/index.cgi (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/todoshare/index.cgi
r16711 r16712 44 44 45 45 sub disp { 46 &Tmpl::page({title=>$id},[span, 46 my $scr=<<'EOF'; 47 j=new JsonScript(); 48 j.registerAction("DELREL",function (obj,name,val,td,table) { 49 print("DE "+ obj+ " "+name+" "+val+" "+td+" "+table ); 50 $(table).firstChild/*tbody*/.removeChild($(td)); 51 }); 52 EOF 53 &Tmpl::page({title=>$id,script=>$scr},[span, 47 54 [strong,img(src=>"img/obj.png"),"$id"], 48 55 [table(id=>$id),sub { … … 50 57 my $res=&Obj::exe(["FINDREL",$id,any,any]); 51 58 for (@$res) { 52 my $action=["PROGN", 53 ["DELREL", $_->{obj},$_->{name},$_->{val}], 54 ["RMELEM", $_->{t} ] 55 ]; 59 my $action=toJSON( 60 ["DELREL", $_->{obj},$_->{name},$_->{val}, $_->{t},$id ] 61 ); 56 62 $p->p([&tr(id=>$_->{t}), 57 63 [td,$_->{name}] , 58 64 [td,&Tmpl::link2obj($_->{val})], 59 65 [td, 60 [button( id=>,61 onClick=>qq( alert(this.id))66 [button( 67 onClick=>qq(j.exec($action)) 62 68 ) ,"Forget"] 63 69 ]
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)