# HG changeset patch # User Dan # Date 1185401194 14400 # Node ID 68469a95658d8378ce14b5b0613a606c719acd92 # Parent 0a74676a2f2f31f02483a1407c84abe37e8ff54c Various bugfixes and cleanups, too much to remember... see the diffs for what got changed :-) diff -r 0a74676a2f2f -r 68469a95658d includes/clientside/static/acl.js --- a/includes/clientside/static/acl.js Sat Jul 21 18:12:10 2007 -0400 +++ b/includes/clientside/static/acl.js Wed Jul 25 18:06:34 2007 -0400 @@ -316,7 +316,7 @@ act_desc = ( data.type == 'new' ) ? 'Create access rule' : 'Editing permissions'; target_type_t = ( data.target_type == 1 ) ? 'group' : 'user'; target_name_t = data.target_name; - var scope_type = ( data.page_id == false && data.namespace == false ) ? 'this entire site' : 'this page'; + var scope_type = ( data.page_id == false && data.namespace == false ) ? 'this entire site' : ( data.namespace == '__PageGroup' ) ? 'this group of pages' : 'this page'; html = '
This panel allows you to edit what the '+target_type_t+' "'+target_name_t+'" can do on ' + scope_type + '. Unless you set a permission to "Deny", these permissions may be overridden by other rules.
'; parser = new templateParser(data.template.acl_field_begin); html += parser.run(); @@ -390,7 +390,7 @@ b.appendChild(document.createTextNode('Permissions updated')); note.appendChild(b); note.appendChild(document.createElement('br')); - note.appendChild(document.createTextNode('The permissions for '+data.target_name+' on this page have been updated successfully.')); + note.appendChild(document.createTextNode('The permissions for '+data.target_name+' on this page have been updated successfully. If you changed permissions that affect your user account, you may not see changes until you reload the page.')); note.appendChild(document.createElement('br')); var a = document.createElement('a'); a.href = 'javascript:void(0);'; diff -r 0a74676a2f2f -r 68469a95658d includes/clientside/static/comments.js --- a/includes/clientside/static/comments.js Sat Jul 21 18:12:10 2007 -0400 +++ b/includes/clientside/static/comments.js Wed Jul 25 18:06:34 2007 -0400 @@ -166,7 +166,10 @@ } } - // Posting form + if ( data.auth_post_comments ) + { + + // Posting form html += 'If you have comments or suggestions on this article, you can shout it out here.'; @@ -193,6 +196,8 @@ html += ' '; html += ''; + } + document.getElementById('ajaxEditContainer').innerHTML = html; for ( i = 0; i < data.comments.length; i++ ) diff -r 0a74676a2f2f -r 68469a95658d includes/clientside/static/flyin.js --- a/includes/clientside/static/flyin.js Sat Jul 21 18:12:10 2007 -0400 +++ b/includes/clientside/static/flyin.js Wed Jul 25 18:06:34 2007 -0400 @@ -137,7 +137,11 @@ { topc = GlideEffect.easeInOut(i, topi, diff_top, frames); leftc = GlideEffect.easeInOut(i, lefti, diff_left, frames); - setTimeout('var o = fly_in_cache['+rand_seed+']; o.style.top=\''+topc+'px\'; o.style.left=\''+leftc+'px\';', timeout); + var code = 'var o = fly_in_cache['+rand_seed+']; o.style.top=\''+topc+'px\';'; + if ( !height_taken_care_of ) + code += ' o.style.left=\''+leftc+'px\''; + code += ';'; + setTimeout(code, timeout); timeout += timerstep; var ratio = i / frames; diff -r 0a74676a2f2f -r 68469a95658d includes/clientside/static/misc.js --- a/includes/clientside/static/misc.js Sat Jul 21 18:12:10 2007 -0400 +++ b/includes/clientside/static/misc.js Wed Jul 25 18:06:34 2007 -0400 @@ -18,8 +18,17 @@ function findParentForm(o) { - // Not implemented - someone please let me know how to do this, what I need to do is - // find the first parent