fine grained permission bits
This commit is contained in:
@ -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 ) {
|
||||
|
Reference in New Issue
Block a user