2 * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
3 * Copyright (C) 2002-2009 The Nucleus Group
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 * (see nucleus/documentation/index.html#license for more info)
11 * Some JavaScript code for the admin area
13 * $Id: admin.js 1888 2012-06-17 08:38:54Z sakamocchi $
17 popup = window.open(url,'helpwindow','status=no,toolbar=yes,scrollbars=yes,resizable=yes,width=500,height=500,top=0,left=0');
18 if (popup.focus) popup.focus();
19 if (popup.GetAttention) popup.GetAttention();
23 var oldCellColor = "#000";
24 function focusRow(row) {
25 var cells = row.cells;
27 oldCellColor = cells[0].style.backgroundColor;
28 for (var i=0;i<cells.length;i++) {
29 cells[i].style.backgroundColor='whitesmoke';
32 function blurRow(row) {
33 var cells = row.cells;
35 for (var i=0;i<cells.length;i++) {
36 cells[i].style.backgroundColor=oldCellColor;
39 function batchSelectAll(what) {
42 while (el = document.getElementById('batch' + i)) {
43 el.checked = what?'checked':'';
48 function selectCanLogin(flag) {
50 window.document.memberedit.canlogin[0].checked=true;
52 // don't disable canlogin[0], otherwise the value won't be passed.
53 // window.document.memberedit.canlogin[0].disabled=true;
54 window.document.memberedit.canlogin[1].disabled=true;
56 window.document.memberedit.canlogin[0].disabled=false;
57 window.document.memberedit.canlogin[1].disabled=false;