this.tout = 0;
}
if (this.win) {
+ this.win.onbeforeunload = null;
this.win.close();
this.win = null;
}
},
post_onload: function() {
- $(this.win, 'mainbody').innerHTML = "GHE SEMU";
+ var tr, td, remtr;
+
+ this.win.anc = this;
+ this.table = $(this.win, 'moder_tab');
+
+ for (i = 0 ; i < 3 ; i++) {
+ tr = document.createElement("tr");
+ for (e = 0 ; e < 2 ; e++) {
+ td = document.createElement("td");
+ td.innerHTML = "Content "+((i * 2)+e);
+ tr.appendChild(td);
+ }
+ this.table.appendChild(tr);
+ if (i == 0)
+ remtr = tr;
+ }
+ this.table.removeChild(remtr);
this.enabled = true;
},
+ onunload: function() {
+ act_moderate();
+ },
+
is_enabled: function() {
return (this.enabled);
}// ,
//add: function(item) {
// this.item.append(new ModerateItem(item));
//}
- // send_mesg("moderate|"+(enable ? "true" | "false"));
+ // send_mesg("moderate|"+(enable ? "false" | "true"));
}
function act_moderate()
{
- send_mesg("moderate|"+(g_moder.is_enabled() ? "true" : "false"));
+ send_mesg("moderate|"+(g_moder.is_enabled() ? "false" : "true"));
}
-// send_mesg("moderate|false");
-// return false;
-// }
-
// // build table with js
// g_moder.item = new Array;