Version 3.3.4
This commit is contained in:
1 parent
78706903a2
commit
fb6b5baabc
2206 files changed
+409828
-382984
No files matched your search
@@ -30,15 +30,6 @@ _post.prototype.post = {
|
||||
$('postingform').observe('submit', ipb.post.postFormSubmit);
|
||||
}
|
||||
|
||||
if( $('open_emoticons') ){
|
||||
$('open_emoticons').observe('click', ipb.post.toggleEmoticons);
|
||||
}
|
||||
|
||||
if( $('post_options_options') && $('toggle_post_options') ){
|
||||
$('toggle_post_options').update( ipb.lang['click_to_show_opts'] );
|
||||
$('toggle_post_options').observe('click', ipb.post.showOptions );
|
||||
}
|
||||
|
||||
// Add calendars
|
||||
if( $('mod_open_date') && $('mod_open_date_icon') ){
|
||||
$('mod_open_date_icon').observe('click', function(){
|
||||
@@ -51,7 +42,7 @@ _post.prototype.post = {
|
||||
});
|
||||
}
|
||||
|
||||
if( $('post_preview' ) ){
|
||||
if( $('post_preview') ){
|
||||
ipb.post.externalizePreviewLinks( $('post_preview') );
|
||||
}
|
||||
|
||||
@@ -62,6 +53,11 @@ _post.prototype.post = {
|
||||
if( $('topic_title') ){
|
||||
$('topic_title').focus();
|
||||
}
|
||||
|
||||
if ( $('post_htmlstatus') )
|
||||
{
|
||||
ipb.textEditor.bindHtmlCheckbox( $('post_htmlstatus') );
|
||||
}
|
||||
},
|
||||
|
||||
// Bug #16805
|
||||
@@ -74,7 +70,7 @@ _post.prototype.post = {
|
||||
Debug.write("Finding links in post preview");
|
||||
|
||||
// Find all links
|
||||
$( wrapper ).select('a').each( function(elem){
|
||||
$( wrapper ).select('a').each( function(elem){
|
||||
var curRel = ['external'];
|
||||
|
||||
if( $( elem ).readAttribute('rel') != null ){
|
||||
@@ -84,7 +80,6 @@ _post.prototype.post = {
|
||||
$( elem ).writeAttribute('rel', curRel.join(' ') );
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
postFormSubmit: function(e)
|
||||
{
|
||||
@@ -107,22 +102,6 @@ _post.prototype.post = {
|
||||
|
||||
|
||||
if( error ){ Event.stop(e); };
|
||||
|
||||
},
|
||||
|
||||
showOptions: function(e)
|
||||
{
|
||||
new Effect.Fade( $('toggle_post_options'), { duration: 0.2 } );
|
||||
//$('toggle_post_options').hide();
|
||||
new Effect.BlindDown( $( 'post_options_options' ), { duration: 0.3 } );
|
||||
},
|
||||
|
||||
hideOptions: function()
|
||||
{
|
||||
if( $('post_options_options') )
|
||||
{
|
||||
$('post_options_options').hide();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user