Open popup at same location like before
authorJoey Schulze <joey@infodrom.org>
Thu, 4 Oct 2012 20:41:57 +0000 (22:41 +0200)
committerJoey Schulze <joey@infodrom.org>
Thu, 4 Oct 2012 20:41:57 +0000 (22:41 +0200)
artikel.php

index ae3e870..d18a219 100644 (file)
@@ -38,7 +38,10 @@ function price_popup_open()
 
        price_popup = new Rico.Popup(options, false, false);
        price_popup.createWindow('<strong>Verbinden</strong>',content,'auto','130px');
 
        price_popup = new Rico.Popup(options, false, false);
        price_popup.createWindow('<strong>Verbinden</strong>',content,'auto','130px');
-    }
+
+       price_popup.openPopup(100,300);
+    } else
+       price_popup.openPopup();
 
     price_popup.titleDiv.childNodes[0].innerHTML = 'Preis hinzufügen';
 
 
     price_popup.titleDiv.childNodes[0].innerHTML = 'Preis hinzufügen';
 
@@ -46,8 +49,6 @@ function price_popup_open()
     var artikel = document.getElementById('form_artikel');
     artikel.value = form_id.value;
 
     var artikel = document.getElementById('form_artikel');
     artikel.value = form_id.value;
 
-    price_popup.openPopup(100,300);
-
     var datum = document.getElementById('form_datum');
     datum.activate();
 }
     var datum = document.getElementById('form_datum');
     datum.activate();
 }