mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-05 07:03:24 +01:00
- IE does not support input type URL. Sucks.
This commit is contained in:
parent
9213dc6aa3
commit
5b966d870f
@ -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'
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user