diff options
Diffstat (limited to 'js/ajax.js')
-rw-r--r-- | js/ajax.js | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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=''; |