diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2012-04-29 17:51:51 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2012-04-29 17:51:51 (GMT) |
commit | 44ca9512aaeb19f7fbd07afda88ec4cfe53ce831 (patch) | |
tree | a8d7cbd0da612bb0b1fa97dcc1bac1838f845338 /src/dynsections_js.h | |
parent | f3e0c94b327d47e5c3d3a36a9a6300cee8d2a537 (diff) | |
download | Doxygen-44ca9512aaeb19f7fbd07afda88ec4cfe53ce831.zip Doxygen-44ca9512aaeb19f7fbd07afda88ec4cfe53ce831.tar.gz Doxygen-44ca9512aaeb19f7fbd07afda88ec4cfe53ce831.tar.bz2 |
Release-1.8.0-20120429
Diffstat (limited to 'src/dynsections_js.h')
-rw-r--r-- | src/dynsections_js.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/src/dynsections_js.h b/src/dynsections_js.h new file mode 100644 index 0000000..ac507a4 --- /dev/null +++ b/src/dynsections_js.h @@ -0,0 +1,78 @@ +"function toggleVisibility(linkObj)\n" +"{\n" +" var base = $(linkObj).attr('id');\n" +" var summary = $('#'+base+'-summary');\n" +" var content = $('#'+base+'-content');\n" +" var trigger = $('#'+base+'-trigger');\n" +" var src=$(trigger).attr('src');\n" +" if (content.is(':visible')===true) {\n" +" content.hide();\n" +" summary.show();\n" +" $(linkObj).addClass('closed').removeClass('opened');\n" +" $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png');\n" +" } else {\n" +" content.show();\n" +" summary.hide();\n" +" $(linkObj).removeClass('closed').addClass('opened');\n" +" $(trigger).attr('src',src.substring(0,src.length-10)+'open.png');\n" +" } \n" +" return false;\n" +"}\n" +"\n" +"function updateStripes()\n" +"{\n" +" $('table.directory tr').\n" +" removeClass('even').filter(':visible:even').addClass('even');\n" +"}\n" +"function toggleLevel(level)\n" +"{\n" +" $('table.directory tr').each(function(){ \n" +" var l = this.id.split('_').length-1;\n" +" var i = $('#img'+this.id.substring(3));\n" +" var a = $('#arr'+this.id.substring(3));\n" +" if (l<level+1) {\n" +" i.attr('src','ftv2folderopen.png');\n" +" a.attr('src','ftv2mnode.png');\n" +" $(this).show();\n" +" } else if (l==level+1) {\n" +" i.attr('src','ftv2folderclosed.png');\n" +" a.attr('src','ftv2pnode.png');\n" +" $(this).show();\n" +" } else {\n" +" $(this).hide();\n" +" }\n" +" });\n" +" updateStripes();\n" +"}\n" +"function toggleFolder(id) \n" +"{\n" +" var n = $('[id^=row_'+id+']');\n" +" var i = $('[id^=img_'+id+']');\n" +" var a = $('[id^=arr_'+id+']');\n" +" var c = n.slice(1);\n" +" if (c.filter(':first').is(':visible')===true) {\n" +" i.attr('src','ftv2folderclosed.png');\n" +" a.attr('src','ftv2pnode.png');\n" +" c.hide();\n" +" } else {\n" +" i.attr('src','ftv2folderopen.png');\n" +" a.attr('src','ftv2mnode.png');\n" +" c.show();\n" +" }\n" +" updateStripes();\n" +"}\n" +"\n" +"function toggleInherit(id)\n" +"{\n" +" var rows = $('tr.inherit.'+id);\n" +" var img = $('tr.inherit_header.'+id+' img');\n" +" var src = $(img).attr('src');\n" +" if (rows.filter(':first').is(':visible')===true) {\n" +" rows.hide();\n" +" $(img).attr('src',src.substring(0,src.length-8)+'closed.png');\n" +" } else {\n" +" rows.show();\n" +" $(img).attr('src',src.substring(0,src.length-10)+'open.png');\n" +" }\n" +"}\n" +"\n" |