Subversion Repositories DevTools

Rev

Rev 7243 | Rev 7291 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7243 Rev 7261
Line 193... Line 193...
193
//
193
//
194
var vixIframe;
194
var vixIframe;
195
if (typeof vixIframe === 'undefined') {
195
if (typeof vixIframe === 'undefined') {
196
    vixIframe = {};
196
    vixIframe = {};
197
}
197
}
198
$(document).ready(function () {
-
 
199
 
198
 
-
 
199
//--------- vixIframeDialog class
-
 
200
//  Allow for dynamic creation of elements with this class
200
    $('.vixIframeDialog').on('click', function(e){
201
$( document ).on('click', '.vixIframeDialog', function(e){
201
		if (!vixIframe.parent) {
202
    if (!vixIframe.parent) {
202
			e.preventDefault();
203
        e.preventDefault();
203
			vixIframe.parent = this;
204
        vixIframe.parent = this;
204
			vixIframe.pagetitle = $(this).attr("title");
205
        vixIframe.pagetitle = $(this).attr("title");
205
			if (! vixIframe.pagetitle) {
206
        if (! vixIframe.pagetitle) {
206
				vixIframe.pagetitle = $(this).text();
207
            vixIframe.pagetitle = $(this).text();
207
			}
208
        }
208
			vixIframe.url = $(this).attr("href");
209
        vixIframe.url = $(this).attr("href");
209
			vixIframeDialogCommon();
210
        vixIframeDialogCommon();
210
		}
211
    }
211
	});
212
})
-
 
213
 
-
 
214
$(document).ready(function () {
212
 
215
 
213
    //
-
 
214
    // Prevent (at least control) the user from navigating within the iframe
216
    // Prevent (at least control) the user from navigating within the iframe
215
    // If this invocation is within an iFrame, then close the iFrame if
217
    // If this invocation is within an iFrame, then close the iFrame if
216
    // the user attempt to navigate away from the iFrame.
218
    // the user attempt to navigate away from the iFrame.
217
    //      This means that the iFrame cannot replace itself
219
    //      This means that the iFrame cannot replace itself
218
    // 
220
    // 
Line 221... Line 223...
221
        //console.log("DocumentReady within iframe");
223
        //console.log("DocumentReady within iframe");
222
        window.onunload = function(){
224
        window.onunload = function(){
223
            //console.log("Unloading within iframe");
225
            //console.log("Unloading within iframe");
224
        }
226
        }
225
    }
227
    }
226
 
-
 
227
});
228
});
228
 
229
 
229
//
230
//
230
//	Callable function to instantiate an Iframe Dialog
231
//	Callable function to instantiate an Iframe Dialog
231
//  Used in a replacement for MM_openBrWindow called MM_openVixIFrame
232
//  Used in a replacement for MM_openBrWindow called MM_openVixIFrame