Version 3.2.3
This commit is contained in:
1 parent
ae5c01cc78
commit
78706903a2
2641 files changed
+228363
-201264
No files matched your search
@@ -0,0 +1,76 @@
|
||||
/************************************************/
|
||||
/* IPB3 Javascript */
|
||||
/* -------------------------------------------- */
|
||||
/* acp.replacements.js - Replacements functions */
|
||||
/* (c) IPS, Inc 2008 */
|
||||
/* -------------------------------------------- */
|
||||
/* Author: Rikki Tissier */
|
||||
/************************************************/
|
||||
|
||||
ACPSkinSets = {
|
||||
|
||||
/* ------------------------------ */
|
||||
/**
|
||||
* Setup
|
||||
*/
|
||||
init: function()
|
||||
{
|
||||
document.observe("dom:loaded", function(){
|
||||
|
||||
$('ipsNewSkin').on('click', this.showAddDialogue.bindAsEventListener(this) );
|
||||
|
||||
ipb.delegate.register(".ipsCancelEditor", ACPSkinSets.showCancelDialogue );
|
||||
|
||||
}.bind(this) );
|
||||
},
|
||||
|
||||
/**
|
||||
* Show cancel dialogue
|
||||
*/
|
||||
showCancelDialogue: function( e, elem )
|
||||
{
|
||||
Event.stop(e);
|
||||
|
||||
new ipb.Popup( 'cancel_editor', { type: 'pane',
|
||||
initial: cancelEditorDialogue.evaluate( { 'url': elem.readAttribute('href') } ),
|
||||
stem: false,
|
||||
modal: true,
|
||||
hideAtStart: false,
|
||||
hideClose: false,
|
||||
defer: false,
|
||||
w: 400 } );
|
||||
},
|
||||
|
||||
/**
|
||||
* Fetch and show the pop-up dialogue
|
||||
*/
|
||||
showAddDialogue: function(e)
|
||||
{
|
||||
Event.stop(e);
|
||||
|
||||
var url = ipb.vars['base_url'] + "app=core&module=ajax&section=skinsets&do=showAddDialogue&secure_key=" + ipb.vars['md5_hash'];
|
||||
|
||||
// Send
|
||||
new Ajax.Request( url.replace(/&/g, '&'),
|
||||
{
|
||||
method: 'get',
|
||||
onSuccess: function(t)
|
||||
{
|
||||
if ( t.responseText )
|
||||
{
|
||||
/* Load */
|
||||
new ipb.Popup( 'nooSkin', { type: 'pane',
|
||||
initial: t.responseText,
|
||||
modal: true,
|
||||
stem: true,
|
||||
hideAtStart: false,
|
||||
hideClose: false,
|
||||
defer: false,
|
||||
w: 400 } );
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
ACPSkinSets.init();
|
||||
Reference in new issue
Block a user