first commit
This commit is contained in:
26
js/swampy_browser/sb.js
Normal file
26
js/swampy_browser/sb.js
Normal file
@@ -0,0 +1,26 @@
|
||||
var browser_url = "/js/swampy_browser/";
|
||||
|
||||
var fieldName = null;
|
||||
var wind = null;
|
||||
|
||||
function openSwampyBrowser(field_name, url, type, win)
|
||||
{
|
||||
wind = win;
|
||||
fieldName = field_name;
|
||||
|
||||
var height = 555;
|
||||
var width = 850;
|
||||
|
||||
var top=Math.round((screen.height-height)/2);
|
||||
var left=Math.round(screen.width/2);
|
||||
|
||||
var params = "top="+top+",left="+left+",width="+width+",height="+height+",buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no";
|
||||
|
||||
var wnd = window.open(browser_url, name, params);
|
||||
wnd.focus();
|
||||
}
|
||||
|
||||
function insertURL(url)
|
||||
{
|
||||
wind.document.getElementById(fieldName).value = url;
|
||||
}
|
||||
Reference in New Issue
Block a user