PHP Classes

File: assets/js/admin.js

Recommend this page to a friend!
  Classes of Goffy G   wgGallery   assets/js/admin.js   Download  
File: assets/js/admin.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: wgGallery
Image gallery module for XOOPS CMS
Author: By
Last change:
Date: 3 years ago
Size: 962 bytes
 

Contents

Class file image Download
/** * Method toggles checkboxes to initiating checkbox. * @param {HTMLElement} element Clicked checkbox */ function toggleCheckboxGroupPerm (element) { var toggle_checked = false; el = document.getElementById('all_'+element+'1'); toggle_checked = el.checked; for (var i = 1; i < 10; i++) { el = document.getElementById(''+element+i); if ( el !== null ) { el.checked = toggle_checked;} } }; function wgshowImgSelected(imgId, selectId, imgDir, extra, xoopsUrl) { if (xoopsUrl == null) { xoopsUrl = "./"; } imgDom = xoopsGetElementById(imgId); selectDom = xoopsGetElementById(selectId); if (selectDom.options[selectDom.selectedIndex].text !== "") { imgDom.src = xoopsUrl + "/" + imgDir + "/" + selectDom.options[selectDom.selectedIndex].value + extra; } else { imgDom.src = xoopsUrl + "/images/blank.gif"; } document.getElementById("alb_imgtype1").checked = true; }