%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.26 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/var/www/html/old/plugins/editors/jckeditor/install/js/ |
Upload File : |
/**
* @version $Id: modal.js 5263 2006-10-02 01:25:24Z webImagery $
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
/**
* JCombobox javascript behavior
*
* Used for transforming <input type="text" ... /> tags into combobox dropdowns with appropriate <noscript> tag following
* for dropdown list information
*
* @package Joomla
* @since 1.5
* @version 1.0
*/
var JComboboxParam = function() { this.constructor.apply(this, arguments);}
JComboboxParam.prototype = {
constructor: function()
{
var agt = navigator.userAgent.toLowerCase();
this.is_ie = (agt.indexOf("msie") != -1);
this.is_opera = (agt.indexOf("opera") != -1);
this.is_safari = (agt.indexOf("safari") != -1);
this.is_ie7 = (agt.indexOf("msie 7") != -1);
this.is_ie8 = (agt.indexOf("msie 8") != -1);
this.is_ie9 = (agt.indexOf("msie 9") != -1);
this.is_ie10 = (agt.indexOf("msie 10") != -1);
var boxes = document.getElements('.combobox');
for ( var i=0; i < boxes.length; i++) {
if (boxes[i].tagName == 'SELECT') {
this.initialize(boxes[i]);
}
}
},
initialize: function(element)
{
var textbox = null;
var name = element.name;
if (this.is_ie)
{
try
{
textbox = document.createElement( "<input name='"+name+"'>" );
}
catch(e){}
}
if(!textbox)
{
textbox = document.createElement('input');
textbox.setAttribute('name',name);
}
textbox.setAttribute('type',"text");
textbox.setAttribute('id',element.id+'-input'); //Note this is a necessary step to add suffix id otherwise IE8/7 gets confused.
element.setAttribute('id','combobox-'+element.id+'-select');
textbox.value = element.getAttribute('data-value') && element.getAttribute('data-value').replace(/^\s\s*/, '').replace(/\s\s*$/, '') || 'Automatic';
element.inputbox = textbox.id;
element.onchange = function(){ var input = document.getElementById(this.inputbox); input.value = this.options[this.selectedIndex].value; }
element.parentNode.insertBefore(textbox, element.nextSibling);
var coords = { x: 0, y: 0};
var widthOffset = 18;
var heightOffset = 0;
// Set text field properties based on the select box
textbox.style.position = 'relative';
textbox.style.bottom = coords.y +'px';
textbox.style.right = coords.x + widthOffset + 'px';
textbox.style.width = element.offsetWidth - widthOffset + 'px';
if(this.is_ie)
{
version = parseInt(MooTools.version.replace(/\./g,'')); //Note: this is a weak way for testing for Joomla 1.6+ but... it will do for now.
if(version > 125 && !this.is_ie10)
heightOffset = 4;
if(this.is_ie9)
{
textbox.style.height = element.offsetHeight - heightOffset -1 + 'px';
textbox.style.right = coords.x + widthOffset + 3 + 'px';
}
if( this.is_ie10)
textbox.style.width = element.offsetWidth - widthOffset -1 + 'px';
}
textbox.style.zIndex = 0;
element.style.position = 'relative';
element.style.left = element.offsetWidth - widthOffset + 'px';
element.style.zIndex = 0;
}
}
document.combobox = null
window.addEvent('domready',function(){
var combobox = new JComboboxParam()
document.combobox = combobox
});