summaryrefslogtreecommitdiffstats
path: root/js/ajax.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/ajax.js')
-rw-r--r--js/ajax.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/js/ajax.js b/js/ajax.js
index 88404ea..4d21cf3 100644
--- a/js/ajax.js
+++ b/js/ajax.js
@@ -13,6 +13,21 @@
// 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';
+}
+
+function hidediv(id) {
+ if(_targetdiv)
+ _targetdiv.style.display = 'block';
+ _targetdiv = document.getElementById(id);
+ _targetdiv.style.display = 'none';
+}
+
var request = createRequestObject();
var dataReturn='';
var ajaxTimeout='';