Team:UNIK Copenhagen/test3
From 2014.igem.org
(Difference between revisions)
Line 17: | Line 17: | ||
<SCRIPT LANGUAGE="JavaScript"> | <SCRIPT LANGUAGE="JavaScript"> | ||
function initDialog(target, title, focus, completecode, closecode) { | function initDialog(target, title, focus, completecode, closecode) { | ||
- | $(target).dialog({ | + | $(target).dialog( { |
- | modal:true, | + | modal: true, |
- | //title:title, | + | //title: title, |
- | width:450 | + | width: 450, |
- | closeText:'Luk', | + | closeText: 'Luk', |
- | buttons:{Ok:function(){$(this).dialog('close');}}, | + | buttons: { Ok: function () { $(this).dialog('close'); } }, |
- | open:function(event,ui){if(focus !=null){$(focus).focus();}if(completecode !=null){setTimeout(completecode, 50);}}, | + | open: function (event, ui) { if (focus !=null) {$(focus).focus(); } if (completecode !=null) {setTimeout(completecode, 50);}}, |
- | close: function(event,ui) {if(closecode !=null){eval(closecode);}} | + | close: function (event, ui) { if (closecode !=null){ eval(closecode); } } |
}); | }); | ||
} | } |
Revision as of 20:03, 16 August 2014