Plugin Directory

Changeset 168823


Ignore:
Timestamp:
10/30/2009 07:46:35 PM (16 years ago)
Author:
reaperhulk
Message:

most, if not all, of 2.1. don't want to release now though

Location:
fidgetr/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • fidgetr/trunk/fidgetr.php

    r168138 r168823  
    44    Plugin URI: http://langui.sh/fidgetr
    55    Description: A themeable Flickr widget (multi-widget supported) that can fetch pictures and comments and style them in a myriad of attractive ways.
    6     Version: 2.0
     6    Version: 2.1
    77    Author: Paul Kehrer
    88    Author URI: http://langui.sh/
     
    1515require_once("flickrApi.class.php");
    1616
    17 define('FIDGETR_VERSION','2.0');
     17define('FIDGETR_VERSION','2.1');
    1818
    1919if (!defined('WP_CONTENT_URL')) {
     
    457457}
    458458
    459 add_action('widgets_init','fidgetr_register',1);
     459add_action('widgets_init','fidgetr_register');
    460460
    461461//pretty safe to assume we would like jquery available for use within all themes
  • fidgetr/trunk/fidgetr_ajax.js

    r168138 r168823  
    33var spinner;
    44var return_element;
     5var photoset_select;
    56jQuery(document).ready(function() {
    67    jQuery('.fidgetr_username').keyup(function() {
     
    1011            }
    1112            username_fidgetr = jQuery(this).val();
    12             spinner = jQuery(this).parent().parent().find('.fidgetr_loading');
    13             return_element = jQuery(this).parent().parent().parent().find('.fidgetr_return');
    14             fidgetrTimeoutId = setTimeout('queryFlickr(username_fidgetr)',800);
     13            spinner = jQuery(this).closest('div.widget').find('img.ajax-feedback');
     14            return_element = jQuery(this).closest('div').find('.fidgetr_return');
     15            photoset_select = jQuery(this).closest('div').find('.fidgetr_photoset');
     16            fidgetrTimeoutId = setTimeout('nsidQuery(username_fidgetr)',800);
    1517        }
    1618    });
    1719});
    1820
    19 function queryFlickr(value) {
    20     spinner.show();
     21function nsidQuery(value) {
     22    spinner.css('visibility','visible');
    2123    jQuery.post("admin-ajax.php", {
    2224        action: 'fidgetr_user_check_ajax',
     
    2830        //ability to comprehend.  let's strip it off.
    2931        var truncated_response = response.substring(0, response.length - 1);
     32        if(truncated_response.match('green') != null) { //valid response is shown as green.  this is not a great hack...
     33            photosetQuery();
     34        }
    3035        return_element.fadeOut();
    3136        setTimeout('finishAjax(\''+escape(truncated_response) + '\')', 400);
     
    3439
    3540function finishAjax(response) {
    36     spinner.hide();
     41    spinner.css('visibility','hidden');
    3742    return_element.html(unescape(response));
    3843    return_element.fadeIn();
    3944}
     45
     46function photosetQuery() {
     47    jQuery.post("admin-ajax.php", {
     48        action: 'fidgetr_photoset_fetch_ajax',
     49        cookie: encodeURIComponent(document.cookie),
     50        username: username_fidgetr
     51    },
     52    function(response) {
     53        //wp returns a 0 after all ajax calls for reasons that are beyond my
     54        //ability to comprehend.  let's strip it off.
     55        var truncated_response = response.substring(0, response.length - 1);
     56        photoset_select.html(truncated_response);
     57    });
     58}
  • fidgetr/trunk/readme.txt

    r168138 r168823  
    44Tags: flickr, photos, widgets, sidebar, photography, pictures, photo, widget, picture
    55Requires at least: 2.8
    6 Tested up to: 2.8.5
     6Tested up to: 2.9
    77Stable tag: 2.0
    88
     
    1616
    1717== Changelog ==
     18
     19= 2.1 =
     20* Changing user updates available photosets via AJAX in the widget admin.
     21* Refactored some functions.
     22* Tested with WP 2.9.
    1823
    1924= 2.0 =
Note: See TracChangeset for help on using the changeset viewer.