Version 3.3.4
This commit is contained in:
1 parent
78706903a2
commit
fb6b5baabc
2206 files changed
+409828
-382984
No files matched your search
@@ -1,32 +1,32 @@
|
||||
var _moderate = window.IPBoard;
|
||||
|
||||
_moderate.prototype.moderate = {
|
||||
init: function()
|
||||
{
|
||||
Debug.write("Initializing ips.moderate.js");
|
||||
|
||||
document.observe("dom:loaded", function(){
|
||||
$$('.cancel').each( function cancelMod(elem) {
|
||||
elem.observe('click', ipb.moderate.resetCookie);
|
||||
} );
|
||||
});
|
||||
},
|
||||
|
||||
/* ------------------------------ */
|
||||
/**
|
||||
* Reset the cookie so topic page works properly
|
||||
*
|
||||
* @param {event} e The event
|
||||
*/
|
||||
resetCookie: function(e)
|
||||
{
|
||||
link = Event.findElement(e, 'a');
|
||||
href = link.getAttribute('href');
|
||||
pids = href.replace( new RegExp( /.+?\/selectedpids[\/=]([0-9,]+)(\/|$)/ ), '$1' );
|
||||
|
||||
ipb.Cookie.set('modpids', pids, 0);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
var _moderate = window.IPBoard;
|
||||
|
||||
_moderate.prototype.moderate = {
|
||||
init: function()
|
||||
{
|
||||
Debug.write("Initializing ips.moderate.js");
|
||||
|
||||
document.observe("dom:loaded", function(){
|
||||
$$('.cancel').each( function cancelMod(elem) {
|
||||
elem.observe('click', ipb.moderate.resetCookie);
|
||||
} );
|
||||
});
|
||||
},
|
||||
|
||||
/* ------------------------------ */
|
||||
/**
|
||||
* Reset the cookie so topic page works properly
|
||||
*
|
||||
* @param {event} e The event
|
||||
*/
|
||||
resetCookie: function(e)
|
||||
{
|
||||
link = Event.findElement(e, 'a');
|
||||
href = link.getAttribute('href');
|
||||
pids = href.replace( new RegExp( /.+?\/selectedpids[\/=]([0-9,]+)(\/|$)/ ), '$1' );
|
||||
|
||||
ipb.Cookie.set('modpids', pids, 0);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
ipb.moderate.init();
|
||||
Reference in new issue
Block a user