+ = $.INPUT({type: "button", value: "Delete this page"});
+
+ var updateTRContent = function () {
+ if (btnTypeRakka.checked) {
+ $(trContent).find("th").text("Wiki source");
+ $(trContent).find("td").empty().append(fldRakkaSource);
+ $(trContent).show();
+ }
+ else if (btnTypeCSS.checked) {
+ $(trContent).find("th").text("CSS source");
+ $(trContent).find("td").empty().append(fldCSSSource);
+ $(trContent).show();
+ }
+ else if (btnTypeBinary.checked) {
+ $(trContent).find("th").text("File");
+ $(trContent).find("td").empty().append(fldUploadFile);
+ $(trContent).show();
+ }
+ else {
+ $(trContent).hide();
+ }
+ };
+ $(btnTypeRakka ).change(updateTRContent);
+ $(btnTypeCSS ).change(updateTRContent);
+ $(btnTypeBinary).change(updateTRContent);
+ updateTRContent();