- IE does not support input type URL. Sucks.

This commit is contained in:
Paulo Gustavo Veiga 2012-06-24 21:15:10 -03:00
parent 9213dc6aa3
commit 5b966d870f

View File

@ -71,13 +71,13 @@ mindplot.widget.LinkEditor = new Class({
var select = new Element('select'); var select = new Element('select');
select.setStyles({margin: '5px'}); select.setStyles({margin: '5px'});
new Element('option', {text:'URL'}).inject(select); new Element('option', {text:'URL'}).inject(select);
new Element('option', {text:'Mail'}).inject(select); // new Element('option', {text:'Mail'}).inject(select);
select.inject(form); select.inject(form);
// Add Input ... // Add Input ...
var input = new Element('input', { var input = new Element('input', {
placeholder: 'http://www.example.com/', placeholder: 'http://www.example.com/',
type:'url', type:Browser.ie ? 'text' : 'url', // IE workaround
required:true, required:true,
autofocus:'autofocus' autofocus:'autofocus'
}); });