fixed bug when opening dialogs during script startup

This commit is contained in:
Steffen Vogel 2010-10-09 16:13:03 +02:00
parent 5ef50ebbee
commit 8483ef4d35
2 changed files with 17 additions and 9 deletions

View file

@ -116,7 +116,7 @@
<!-- dialogs -->
<div id="addUUID" class="dialog">
<p>Hier können Sie einen existierenden Kanal über seine UUID hinzufügen</p>
<label>UUID</label><input name="uuid" type="text" size="36" maxlength="36" />
<p></p><label for="uuid">UUID: </label><input id="uuid" type="text" size="36" maxlength="36" /></p>
<input type="button" value="hinzufügen" />
</div>

View file

@ -75,20 +75,28 @@ vz.initInterface = function() {
* Initialize dialogs
*/
vz.initDialogs = function() {
// initialize dialogs
$('#addUUID').dialog({
autoOpen: false,
title: 'UUID hinzufügen',
width: 450,
resizable: false
});
$('#newEntity').dialog({
autoOpen: false,
title: 'Entity erstellen',
width: 400
});
// open uuid dialog
$('button[name=addUUID]').click(function() {
$('#addUUID').dialog({
title: 'UUID hinzufügen',
width: 400
});
$('#addUUID').dialog('open');
});
// open entity dialog
$('button[name=newEntity]').click(function() {
$('#newEntity').dialog({
title: 'Entity erstellen',
width: 400
});
$('#newEntity').dialog('open');
});
// add UUID