PHP Classes

File: js/common.js

Recommend this page to a friend!
  Classes of Martin Latter   Noter   js/common.js   Download  
File: js/common.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Noter
Create and manage notes shared between users
Author: By
Last change: Update of js/common.js
Date: 3 months ago
Size: 832 bytes
 

Contents

Class file image Download
window.addEventListener("load", function() { // block empty search field from going off to server if (document.getElementById("fs")) { document.getElementById("term").focus(); document.getElementById("fs").addEventListener("submit", function(e) { if (document.getElementById("term").value === "") { document.getElementById("fserror").innerHTML = "Search term is empty!"; document.getElementById("term").focus(); e.preventDefault(); } }, false); } if (document.getElementById("faddcont")) { document.getElementById("title").focus(); } if (document.getElementById("complete")) { document.getElementById("complete").className = "fade"; } }, false);