summaryrefslogtreecommitdiffstats
path: root/js/ajax.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/ajax.js')
-rw-r--r--js/ajax.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/js/ajax.js b/js/ajax.js
index 4d21cf3..e64c7f8 100644
--- a/js/ajax.js
+++ b/js/ajax.js
@@ -13,19 +13,12 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-var _targetdiv = null;
function showdiv(id) {
- if(_targetdiv)
- _targetdiv.style.display = 'none';
- _targetdiv = document.getElementById(id);
- _targetdiv.style.display = 'block';
+ document.getElementById(id).style.display = 'block';
}
function hidediv(id) {
- if(_targetdiv)
- _targetdiv.style.display = 'block';
- _targetdiv = document.getElementById(id);
- _targetdiv.style.display = 'none';
+ document.getElementById(id).style.display = 'none';
}
var request = createRequestObject();