fine grained permission bits

This commit is contained in:
Shish
2012-02-07 15:15:18 +00:00
parent bff5a8453f
commit 0589f9d72e
15 changed files with 114 additions and 79 deletions

View File

@ -45,25 +45,8 @@ $(document).ready(function() {
$("#commentBox").DefaultValue("Comment");
$("#tagBox").DefaultValue("tagme");
// if we're going to show with JS, hide with JS first
pass_confirm = byId("pass_confirm");
if(pass_confirm) {
pass_confirm.style.display = "none";
}
});
function showUp(elem) {
e = document.getElementById(elem)
if(!e) return;
e.style.display = "";
// alert(e.type+": "+e.value);
if(e.value.match(/^http|^ftp/)) {
e.type = "text";
alert("Box is web upload");
}
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
* LibShish-JS *
@ -83,6 +66,7 @@ function byId(id) {
}
// used once in ext/setup/main
function getHTTPObject() {
if (window.XMLHttpRequest){
return new XMLHttpRequest();
@ -92,15 +76,6 @@ function getHTTPObject() {
}
}
function ajaxRequest(url, callback) {
var http = getHTTPObject();
http.open("GET", url, true);
http.onreadystatechange = function() {
if(http.readyState == 4) callback(http.responseText);
}
http.send(null);
}
/* get, set, and delete cookies */
function getCookie( name ) {