Version 3.3.4
This commit is contained in:
1 parent
78706903a2
commit
fb6b5baabc
2206 files changed
+409828
-382984
No files matched your search
@@ -0,0 +1,55 @@
|
||||
/************************************************/
|
||||
/* IPB3 Javascript */
|
||||
/* -------------------------------------------- */
|
||||
/* acp.mmobileimages.js */
|
||||
/* (c) IPS, Inc 2011 */
|
||||
/* -------------------------------------------- */
|
||||
/* Author: Matt Mecham */
|
||||
/************************************************/
|
||||
|
||||
var _mobileImages = window.IPBACP;
|
||||
|
||||
_mobileImages.prototype.mobileImages = {
|
||||
popups: [],
|
||||
|
||||
/*
|
||||
* Init function
|
||||
*/
|
||||
init: function()
|
||||
{
|
||||
Debug.write("Initializing acp.mobileImages.js");
|
||||
|
||||
document.observe("dom:loaded", function(){
|
||||
acp.mobileImages.initPage();
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
initPage: function()
|
||||
{
|
||||
$('importXml').observe('click', acp.mobileImages.importPop);
|
||||
},
|
||||
|
||||
importPop: function( e, elem )
|
||||
{
|
||||
Event.stop(e);
|
||||
|
||||
if ( ! Object.isUndefined(acp.mobileImages.popups['install']) )
|
||||
{
|
||||
acp.mobileImages.popups['install'].show();
|
||||
}
|
||||
else
|
||||
{
|
||||
// Make a new popup
|
||||
acp.mobileImages.popups['install'] = new ipb.Popup( 'install', {
|
||||
type: 'modal',
|
||||
initial: ipb.templates['import_xml'].evaluate(),
|
||||
w: '550px',
|
||||
stem: false,
|
||||
hideAtStart: false
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
acp.mobileImages.init();
|
||||
Reference in new issue
Block a user