Version 2.2.0 RC-1
This commit is contained in:
1 parent
f73f8bff6d
commit
22f1b963ee
1034 files changed
+178610
-70897
No files matched your search
@@ -1,75 +1 @@
|
||||
//------------------------------------------
|
||||
// Invision Power Board 2.1.7
|
||||
// Find User JS File
|
||||
// (c) 2004 Invision Power Services, Inc.
|
||||
//
|
||||
// http://www.invisionboard.com
|
||||
//------------------------------------------
|
||||
|
||||
|
||||
|
||||
function add_to_form()
|
||||
{
|
||||
var name = document.finduser.username.options[document.finduser.username.selectedIndex].value;
|
||||
|
||||
if (separator == 'line')
|
||||
{
|
||||
separator = '\n';
|
||||
}
|
||||
|
||||
if (separator == 'none')
|
||||
{
|
||||
separator = '';
|
||||
}
|
||||
|
||||
if (entry == 'textarea')
|
||||
{
|
||||
// Where shall we put the separator?
|
||||
|
||||
var tbox = eval('opener.document.REPLIER.'+in_name+'.value');
|
||||
var tboxSize = eval('opener.document.REPLIER.'+in_name+'.value.length');
|
||||
|
||||
// Remove leading spaces...
|
||||
|
||||
while ( tbox.slice(0,1) == " " )
|
||||
{
|
||||
tbox = tbox.substr(1, tboxSize - 1);
|
||||
tboxSize = tboxSize;
|
||||
}
|
||||
|
||||
// Remove trailing spaces...
|
||||
|
||||
while ( tbox.slice(tboxSize - 1, tboxSize) == " " )
|
||||
{
|
||||
tbox = tbox.substr(0, tboxSize - 1);
|
||||
tboxSize = tboxSize;
|
||||
}
|
||||
|
||||
// Do we have a leading comma?
|
||||
|
||||
while ( tbox.slice(0,1) == "\n" )
|
||||
{
|
||||
tbox = tbox.substr(1, tboxSize - 1);
|
||||
tboxSize = tboxSize;
|
||||
}
|
||||
|
||||
// Do we have a trailing comma?...
|
||||
|
||||
while ( tbox.slice(tboxSize - 1, tboxSize) == "\n" )
|
||||
{
|
||||
tbox = tbox.substr(0, tboxSize - 1);
|
||||
tboxSize = tboxSize;
|
||||
}
|
||||
|
||||
// First in box?
|
||||
|
||||
if ( tboxSize == 0)
|
||||
{
|
||||
eval('opener.document.REPLIER.'+in_name+'.value += name');
|
||||
}
|
||||
else
|
||||
{
|
||||
eval('opener.document.REPLIER.'+in_name+'.value += separator + name');
|
||||
}
|
||||
}
|
||||
}
|
||||
function add_to_form(){var name=document.finduser.username.options[document.finduser.username.selectedIndex].value;if(separator=='line'){separator='\n';}if(separator=='none'){separator='';}if(entry=='textarea'){var tbox=eval('opener.document.REPLIER.'+in_name+'.value');var tboxSize=eval('opener.document.REPLIER.'+in_name+'.value.length');while(tbox.slice(0,1)==" "){tbox=tbox.substr(1,tboxSize-1);tboxSize=tboxSize;}while(tbox.slice(tboxSize-1,tboxSize)==" "){tbox=tbox.substr(0,tboxSize-1);tboxSize=tboxSize;}while(tbox.slice(0,1)=="\n"){tbox=tbox.substr(1,tboxSize-1);tboxSize=tboxSize;}while(tbox.slice(tboxSize-1,tboxSize)=="\n"){tbox=tbox.substr(0,tboxSize-1);tboxSize=tboxSize;}if(tboxSize==0){eval('opener.document.REPLIER.'+in_name+'.value += name');}else{eval('opener.document.REPLIER.'+in_name+'.value += separator + name');}}}
|
||||
Reference in new issue
Block a user