Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- js:
- var form = [
- {
- name: 'title',
- title: 'Скачать',
- required: true,
- },
- {
- name: 'size',
- title: 'Размер',
- required: true,
- getnext: true,
- },
- {
- name: 'measure',
- title: '',
- value: 'Mb',
- required: true,
- type: 'select',
- attributes: {style: 'margin-left: 5px'},
- options: {'Tb': 'Tb', 'Mb': 'Mb', 'Kb': 'Kb', 'b': 'b'}
- },
- {
- name: 'urls',
- title: '',
- required: true,
- type: 'textarea',
- attributes: {rows : '15', cols : '40'}
- },
- ];
- var options = {};
- options.title = 'Ссылки';
- options.stitle = 'Применить';
- //options.validate = function(tag, form) {
- // return confirm('Confirm?');
- //};
- options.submit = function(tag, form) {
- var str = '\nForm elements name-value pairs\n';
- $.each(form.elements, function(i, el){
- str += el.name +'='+ el.value +'\n';
- });
- E.replaceSelection(str);
- };
- E.tagDialog('tag', form, options);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement