web/static/ldt/js/projectscontents.js
branchmodal_update
changeset 38 457d4ab675df
parent 37 3586af4092f3
child 46 ba02faf089df
--- a/web/static/ldt/js/projectscontents.js	Mon Mar 07 18:50:01 2011 +0100
+++ b/web/static/ldt/js/projectscontents.js	Wed Mar 09 16:05:31 2011 +0100
@@ -194,16 +194,16 @@
     $('.ldt_link',base_node).nyroModal({
         filters: ['iriIframe'],
         sizes: {
-            minW: '1022',
-            minH: '662'
+            minW: '1025',
+            minH: '665'
         },
         showCloseButton: true,
         closeOnEscape:false,
         closeOnClick:false,
         callbacks: {
             afterShowCont: function(nm) {
-                nm.store.iframe.height(662);
-                nm.store.iframe.width(1022);
+                nm.store.iframe.width(1025);
+                nm.store.iframe.height(665);
             },
             close: function(nm) {
                 // We don't do anything here, we hack the callback directly from the close function.
@@ -212,27 +212,6 @@
                 // Can't do that because searchprojectfilterurl is not defined in init_events_base params
                 searchCallback($('#searchprojectsinput'), "#projectslistcontainer", searchprojectfilterurl, 0);
             }
-        },
-        resize: function(recalc) {
-            // We need to hack resize AND _unreposition to avoid reload in the modal when we resize the browser.
-            // This code is from the resize function in nmObj.resize
-            this.sizes.w = this.sizes.initW;
-            this.sizes.h = this.sizes.initH;
-            this.size();
-            // callAnim('resize') generates the nodal reload, and we don't want that.
-            // this._callAnim('resize', $.proxy(function() {
-                // this._reposition();
-            // }, this));
-            // This code is from the resize function in _animations.basic
-            this.elts.cont.css({
-                width: this.sizes.w,
-                height: this.sizes.h,
-                top: (this.getInternal().fullSize.viewH - this.sizes.h - this.sizes.hMargin)/2,
-                left: (this.getInternal().fullSize.viewW - this.sizes.w - this.sizes.wMargin)/2
-            });
-        },
-        _unreposition: function() {
-            // We need to hack resize AND _unreposition to avoid reload in the modal when we resize the browser.
         }
     });
 
@@ -270,11 +249,11 @@
                     }
                     var swfobject = $(this).contents().find("#ldtInitSwf"); 
                     if (swfobject.length) {
-                        nm['sizes']['initW'] = swfobject.width() + 21;
-                        nm['sizes']['initH'] = swfobject.height() + 31;
+                        nm['sizes']['initW'] = 1025;
+                        nm['sizes']['initH'] = 665;
                         nm.resize();
-                        nm.store.iframe.height(swfobject.height() + 31);
-                        nm.store.iframe.width(swfobject.width() + 21);
+                        nm.store.iframe.width(1025);
+                        nm.store.iframe.height(665);
                     }
                 });
             },