Skip to content

Commit

Permalink
Merge pull request #6 from uriweb/hotfix-1.2.1
Browse files Browse the repository at this point in the history
Release 1.2.1
  • Loading branch information
bjcfuller authored May 25, 2018
2 parents 80358a2 + e0dd29c commit 199ba92
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 18 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ Add [programs-categories] to a page and a form magically appears.

## Plugin Details

[![Master Build Status](https://travis-ci.org/uriweb/uri-program-finder.svg?branch=master)](https://travis-ci.org/uriweb/uri-program-finder)
[![Develop Build Status](https://travis-ci.org/uriweb/uri-program-finder.svg?branch=develop)](https://travis-ci.org/uriweb/uri-program-finder)
[![CodeFactor](https://www.codefactor.io/repository/github/uriweb/uri-program-finder/badge/master)](https://www.codefactor.io/repository/github/uriweb/uri-program-finder/overview/master)

Contributors: John Pennypacker, Brandon Fuller
Tags: plugins
Requires at least: 4.0
Tested up to: 4.9
Stable tag: 1.2.0
Stable tag: 1.2.1
21 changes: 6 additions & 15 deletions js/program-finder.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Find program finder and set it up to be awesome.
*/
function initFinder() {
var el, querystring;
var el;

el = document.getElementById( 'program-finder' );
convertForm( el );
Expand Down Expand Up @@ -87,7 +87,7 @@
for ( i = 0; i < selects.length; i++ ) {
$( selects[i] ).chosen().on(
'change', function() {
changeListener( form, this );
changeListener( form );
}
);
}
Expand Down Expand Up @@ -148,14 +148,6 @@
setStatus( 'empty', 'No matches found.' );
}

/**
* Clear the status div
*/
function clearStatus() {
statusDiv.className = '';
statusDiv.innerHTML = '';
}

/**
* Create a result row's HTML
*
Expand Down Expand Up @@ -207,9 +199,8 @@
* Listen for change events on the select menus
*
* @param obj form the js form parent element
* @param obj select the select element (what you'd expect to be "this")
*/
function changeListener( form, select ) {
function changeListener( form ) {
var selected, x;

selected = getSelectedCategoryIds( form );
Expand Down Expand Up @@ -326,7 +317,7 @@

if ( '' != qs ) {
obj = qs.split( '&' ).reduce(
function( prev, curr, i, arr ) {
function( prev, curr, i ) {
p = curr.split( '=' );
prev[decodeURIComponent( p[0] )] = decodeURIComponent( p[1] );
return prev;
Expand All @@ -340,7 +331,7 @@
* Load programs from the REST API
*/
function loadPrograms() {
var queryString, url, text, s, x;
var queryString, url, s, x;

queryString = getQueryString();

Expand Down Expand Up @@ -405,7 +396,7 @@
function handleResponse( raw ) {
var data = JSON.parse( raw ),
dataL = data.length,
existingCards, refCard, ids, i, s, t;
existingCards, refCard, ids, i, t;

clearTimeouts();

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "uri-program-finder",
"description": "URI Program Finder",
"version": "1.2.0",
"version": "1.2.1",
"homepage": "https://www.uri.edu",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion uri-program-finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: URI Program Finder
* Plugin URI: http://www.uri.edu
* Description: Program finder tools
* Version: 1.2.0
* Version: 1.2.1
* Author: URI Web Communications
* Author URI:
*
Expand Down

0 comments on commit 199ba92

Please sign in to comment.