Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: T_2_5_0_211

Jul 03, 2008

  1. Jamie McCarthy

    Merge branch 'master' of ssh://trac.corp.sourceforge.com/srv/git/slash

  2. Jamie McCarthy

    Typofixes

  3. Jamie McCarthy

    Omit non-page from "Pages From RSS By Section"

    The "Pages From RSS By Section" daily admin stat report includes
    badges and other non-"page"s.  This omits them.
  4. Chris Nandor

    update

    authored July 03, 2008
  5. Chris Nandor

    Fix up comments read UI a bit

    authored July 03, 2008
  6. Jamie McCarthy

    Typofix

  7. Scott Collins

    Clarify by renaming creation function to create_tag_bar (from tag_bar)

    authored July 03, 2008
  8. Scott Collins

    Use a template to generate the parse-able combined tag format

    The new template produces output like:
    
    	<user>tag1 tag2 tag3\n<top>tag4 tag5\n<system>tag6 tag7
    
    It will omit markers for empty lists, e.g., if there are no user tags, or if
    only one list is supplied (unless you also set 'require_markers').  Thus, if you
    only supply one list at slashDisplay-time, this new template produces exactly
    the same output as the earlier 'no_markup' template.
    
    The no_markup template is no longer needed, and now removed.  Yes, that means I
    am essentially undoing almost all of commit 7b2af24.
    authored July 03, 2008
  9. Chris Nandor

    Update for "comments read"

    Keybindings will no longer navigate forward to hidden comments
    
    If no more non-hidden comments are available, modal dialog asks you if you want
    your threshold reduced
    authored July 03, 2008

Jul 02, 2008

  1. submit.pl: Added code to track a user's latest submissions.

    users2.pl: Code to read latest 5 submission events.
    userInfo2: Updated the nav and added the Submissions slashbox.
    authored July 02, 2008
  2. Scott Collins

    Teach a tag-widget how to do one unified fetch instead of three littl…

    …e ones
    
    The unified answer will come back looking like this:
    
    	<user>tag1 tag2 tag3\n<top>tag1 tag2 tag3\n<system>tag1 tag2 tag3
    
    So we give the widget its own set_tags() function which parses that unifed
    response and pushes the pieces into the appropriate child tag-bar.
    
    widget.fetch_tags() and bar.fetch_tags() look more alike now, so clean-up the
    latter a little to match.
    
    Now that the widget itself is fetching, it also stores the firehose id of the
    entry to which it is attached.
    authored July 01, 2008
  3. Scott Collins

    For tag bars, teach FireHose ajax to fetch combined tags (user, top, …

    …system)
    
    FireHose.pm:
    	+ ajaxGetCombinedFirehose: new function builds combined tag list
    
    upgrades, mysql_dump.sql:
    	+ add new ajax_op 'tags_get_combined_firehose'
    authored July 02, 2008
  4. Scott Collins

    New template: no_markup;misc;default, a `no-op' template to simplify …

    …logic
    
    Unify no_markup, tagsfirehosedivuser, and tagsnodnixuser to all use the parameter
    'content'; and the logic that invokes them.
    authored July 02, 2008
  5. Scott Collins

    Simplify tagbar creation for callers

    Now callers just say which they need: 'user', 'top', or 'system' (defaults to
    'user').  The ajax_op needed for fetching and the tag menu items are now stored
    in a global table hanging from the tag_bar function itself.
    
    Note that the ajax_op 'tags_get_system_firehose' doesn't actually exist yet.
    authored July 01, 2008

Jul 01, 2008

  1. Jamie McCarthy

    Fix error in INSTALL file

    GRANT PROCESS applies globally, to *.* not slash.*.
  2. Jamie McCarthy

    Minor bugfixes

    These tagboxes' isInstalled() was not defaulting to true; fixed.
  3. Scott Collins

    A tag-widget is now one per firehose entry instead of one global inst…

    …ance
    
    tag_widget;misc;default:
    	+ onReady is great for singletons, bad for others; so move our init code
    		into into twidget_fns.init(), in tagui.js
    	+ ids must be unique
    	+ widget initially hidden
    	+ tag-widget class for css since our id doesn't help any more
    	+ stub class to mark widgets that have yet to be init-ed
    
    list;firehose;default, dispFireHose;firehose;default:
    	+ move widget from single page-level instantiation to one/entry
    	+ now only instantiate for admins (at least until we're ready)
    
    tagui.css:
    	+ style by class instead of by id
    
    tagui.js:
    	+ init code moved here from the onReady stuff in the template
    	+ no longer need to reconnect widgets to different firehose entries, so
    		we can drop connect_to()
    	+ add widget.open(), widget.close() to do any internal management needed
    	+ added open_tag_widget(), close_tag_widget()
    
    (open|close)_tag_widget deserve deeper explanation.  They are global functions
    suitable for use as event handlers, e.g.,
    
    	$('.tag-widget-twisty').toggle(open_tag_widget, close_tag_widget)
    
    Here they will expect 'this' to be bound to the event receiver, which must
    be a dom element that is or is within a firehose entry.  You can also call them
    directly passing an element or any jQuery selector.  Because event handlers are
    actually called with an event parameter, I've added a second parameter to
    disambiguate your selector.  That means a direct call looks like this (sorry):
    
    	open_tag_widget(null, '#tag-widget-17')
    
    They are idempotent, that is open_ only touches hidden tag-widgets; close_ only
    visible.  open_ notices if the intended tag-widget is still a stub, and if so,
    initializes it.  Since we lost connect_to, we replicate its fetch_tags behavior
    in open_tag_widget.
    authored July 01, 2008
  4. Jamie McCarthy

    Minor bugfix

  5. Scott Collins

    Typo fix in Tags.pm

    Typo introduced in 3a0f5c.
    authored July 01, 2008
  6. Scott Collins

    Adding new JS function firehose_id_of(expr) to common.js

    expr can be a number, a dom element that is or is within a firehose entry, or a
    string that is a number or the id of a dom element that is or is within a
    firehose entry (not just any id, though --- it must be an id that contains the
    firehose id number as a suffix).  Returns the integer id, if we find one, or
    else undefined.
    
    Useful in handlers on dom elements within a firehose entry, e.g.,
    
    	$('.twisty').click(function(){
    		// 'this' now refers to the dom element accepting the event
    		tagsHideBody(firehose_id_of(this))
    	})
    authored July 01, 2008
  7. Scott Collins

    jQuery convention: 'plug-ins' to jQuery are named jquery.<plugin>.js

    Our jQuery additions constitute a plug-in, so we should follow the convention.
    We were close with 'slashdot.jquery.js', but 'jquery.slashdot.js' is preferred.
    authored July 01, 2008
  8. Scott Collins

    jQuery convention: names of vars that hold jQuery objects should star…

    …t with '$'
    
    For example
    
      var $tag_el = $('.tag');
      var tag = $tag_el.text();
    
    I picked this up on the jQuery list.  It's becoming the standard convention and
    seems like a pretty good idea to me.  Please adopt it in your new code, and
    update your old code when convenient.  A natural next step of this idea would
    be to rename free-standing functions that return jQuery objects to begin with
    '$' as well.  Not sure I'm willing to go that far; on the other hand, I don't
    see that we have any free-standing functions that return jQuery objects at the
    moment.
    authored July 01, 2008
  9. Scott Collins

    For tag bar and tag widget dom elements, 'return this' to support cha…

    …ining
    
    Though these member functions are actually on the underlying dom elements, not
    the jQuery arrays you might use to manage them.  Once you do drill down to the
    dom element, you will be able to chain _these_ calls, at least.
    authored July 01, 2008
  10. Jamie McCarthy

    Nosy tagboxes, getGlobjTargets, feederlog_largerows

    (1) Tagboxes can now (via tagboxes.nosy_gtids column) request that
    new entries in the tagboxlog_feeder table be created when new globjs
    of any of a list of types are created.  These new entries will have
    all NULLs for tagid, tdid, tuid, and simply indicate that the globj
    has been created.  (2) getGlobjTargets() is now an optimized way to
    retrieve [gtid,target_id] data for multiple targets, instead of
    calling getGlobjTarget() multiple times.  (3) The new var
    tags_feederlog_largerows indicates a size beyond which the
    tagboxlog_feeder table is considered "large," and its size will be
    reduced with run() until it is below that size before more additions
    will be accepted.

Jun 30, 2008

  1. Chris Nandor

    More Comments Read Work

    Move save/getCommentReadLog to Slash::DB::MySQL, implement memcached support
    
    Remove obsolete save/getCommentBitmap
    
    Add "d2_reverse_switch" pref for reversing the sense of the shift key.
    authored June 30, 2008

Jun 27, 2008

  1. Scott Collins

    Teach update_tags to optionally annotate changed tags with a style

    Use case: user types some new tags or changes existing tags; update_tags
    inserts them into the appropriate places, but adds the class "local-only" so
    css can style the changes gray.  A server update comes back confirming the
    changes.  update_tags is called again with the server reply, and this time
    no extra classes.  The pending tags now lose their "local-only" style, and
    display normally, telling the user their change was successfully recorded.
    authored June 27, 2008
  2. Scott Collins

    jQuery tweaks for animation completion function in firehose_handle_up…

    …date()
    
    eliminate a couple of extra lookups; unify two toggles into one
    authored June 27, 2008
  3. Chris Nandor

    Oops, cid should be INT

    Retagged
    authored June 26, 2008
  4. Chris Nandor

    Fix BR tag stuff, with P tags

    BR should be treated specially when next to a P tag, in the new code
    authored June 26, 2008

Jun 26, 2008

  1. Chris Nandor

    Only for admins for now!

    authored June 26, 2008
  2. Chris Nandor

    Forgot comments read schema update

    Retagging to include
    authored June 26, 2008
  3. Chris Nandor

    Remember read comments

    Needs some more work, especially memcached work, but seems pretty solid.  admin-only for now.
    
    Also changed ajax_update() and ajax_periodic_update() slightly: changed the "request_url" parameter, which was not in use, to an options hashref.
    
    Also a few little jQuery fixes.
    authored June 26, 2008
  4. Chris Nandor

    updates

    authored June 26, 2008
  5. Chris Nandor

    Fix merge (I hope)

    authored June 26, 2008
  6. Fix typo in sql

    authored June 26, 2008
Something went wrong with that request. Please try again.