Plugin Directory

Changeset 1319880


Ignore:
Timestamp:
01/02/2016 12:42:47 PM (10 years ago)
Author:
markcoker
Message:

tagging version 1.1

Location:
wpfilesearch
Files:
6 edited
2 copied

Legend:

Unmodified
Added
Removed
  • wpfilesearch/tags/1.1/readme.txt

    r1319859 r1319880  
    55Requires at least: 3.3
    66Tested up to: 4.4
    7 Stable tag: trunk
     7Stable tag: 1.1
    88License: GNU GENERAL PUBLIC LICENSE
    99License URI: http://www.gnu.org/licenses/gpl-3.0.en.html
     
    4646
    4747== Changelog ==
    48 v1.0 - Initial Version
     48* v1.0 - Initial Version
     49* v1.1 - Improved code & bugfix.
     50
     51== Upgrade Notice ==
     52
     53= 1.1 =
     54This version includes code improvements and a bug fix for an error message not being displayed properly.
     55
     56= 1.0 =
     57Initial Version
  • wpfilesearch/tags/1.1/wpFileSearch_ajax.js

    r1307692 r1319880  
    33   
    44function notFound(searchTerm){
    5     document.getElementById("status").innerHTML = "Sorry, none of the files contained "+searchTerm+".";
     5    $("#status").innerHTML = "Sorry, none of the files contained "+searchTerm+".";
    66    hideLoadContents();
    77}
    88
    99function showLoadContents(){
    10     if (document.getElementById('searchResults').value !== ''){
    11         document.getElementById('loadContents').style.display='block';
    12         document.getElementById('status').value = "Fetching file content . . .";
     10    if ($('#searchResults').value !== ''){
     11        $('#loadContents').style.display='block';
     12        $('#status').value = "Fetching file content . . .";
    1313    }
    1414}
    1515
    1616function resultsFound(){
    17     document.getElementById('resultsFound').style.display='block';
     17    $('#resultsFound').style.display='block';
    1818}
    1919
    2020function hideLoadContents(){
    21     document.getElementById('resultsFound').style.display='none';
    22     document.getElementById('loadContents').style.display='none';
     21    $('#resultsFound').style.display='none';
     22    $('#loadContents').style.display='none';
    2323}
    2424
    2525function wpFileSearch() {
    26     document.getElementById("status").innerHTML = "User is typing.";
     26    $("#status").innerHTML = "User is typing.";
    2727    clearTimeout(wpFileSearchTimer);
    2828    wpFileSearchTimer = setTimeout(searchRequest, wpFileSearchDoneTypingInterval);
     
    3030
    3131function searchRequest(){
    32     document.getElementById("status").innerHTML = "Searching . . .";
    33     var searchTerm = document.getElementById("searchTerm").value;
     32    $("#status").innerHTML = "Searching . . .";
     33    var searchTerm = $("#searchTerm").value;
    3434    if (searchTerm.length == 0 || searchTerm.length > 50) {
    35         if (searchTerm.length > 50) document.getElementById("status").innerHTML = "Input is too long.";
    36         else document.getElementById("status").innerHTML = "Waiting for user input.";
    37         document.getElementById("searchTerm").value = "";
     35        if (searchTerm.length > 50) $("#status").innerHTML = "Input is too long.";
     36        else $("#status").innerHTML = "Waiting for user input.";
     37        $("#searchTerm").value = "";
    3838        hideLoadContents();
    3939        return;
     
    6868            data: {
    6969                'action':'wpFileSearch_fetch_file',
    70                 'file' : document.getElementById('searchResults').value
     70                'file' : $('#searchResults').value
    7171            },
    7272            success:function(data) {
    7373                jQuery('#fileContents').html(data);
    7474                jQuery('#status').html("File has been fetched.");           
    75                 document.getElementById('resultsFound').style.display='block';
     75                $('#resultsFound').style.display='block';
    7676            },
    7777            error: function(errorThrown){
  • wpfilesearch/tags/trunk/readme.txt

    r1319859 r1319880  
    55Requires at least: 3.3
    66Tested up to: 4.4
    7 Stable tag: trunk
     7Stable tag: 1.1
    88License: GNU GENERAL PUBLIC LICENSE
    99License URI: http://www.gnu.org/licenses/gpl-3.0.en.html
     
    4646
    4747== Changelog ==
    48 v1.0 - Initial Version
     48* v1.0 - Initial Version
     49* v1.1 - Improved code & bugfix.
     50
     51== Upgrade Notice ==
     52
     53= 1.1 =
     54This version includes code improvements and a bug fix for an error message not being displayed properly.
     55
     56= 1.0 =
     57Initial Version
  • wpfilesearch/tags/trunk/wpFileSearch_ajax.js

    r1307692 r1319880  
    33   
    44function notFound(searchTerm){
    5     document.getElementById("status").innerHTML = "Sorry, none of the files contained "+searchTerm+".";
     5    $("#status").innerHTML = "Sorry, none of the files contained "+searchTerm+".";
    66    hideLoadContents();
    77}
    88
    99function showLoadContents(){
    10     if (document.getElementById('searchResults').value !== ''){
    11         document.getElementById('loadContents').style.display='block';
    12         document.getElementById('status').value = "Fetching file content . . .";
     10    if ($('#searchResults').value !== ''){
     11        $('#loadContents').style.display='block';
     12        $('#status').value = "Fetching file content . . .";
    1313    }
    1414}
    1515
    1616function resultsFound(){
    17     document.getElementById('resultsFound').style.display='block';
     17    $('#resultsFound').style.display='block';
    1818}
    1919
    2020function hideLoadContents(){
    21     document.getElementById('resultsFound').style.display='none';
    22     document.getElementById('loadContents').style.display='none';
     21    $('#resultsFound').style.display='none';
     22    $('#loadContents').style.display='none';
    2323}
    2424
    2525function wpFileSearch() {
    26     document.getElementById("status").innerHTML = "User is typing.";
     26    $("#status").innerHTML = "User is typing.";
    2727    clearTimeout(wpFileSearchTimer);
    2828    wpFileSearchTimer = setTimeout(searchRequest, wpFileSearchDoneTypingInterval);
     
    3030
    3131function searchRequest(){
    32     document.getElementById("status").innerHTML = "Searching . . .";
    33     var searchTerm = document.getElementById("searchTerm").value;
     32    $("#status").innerHTML = "Searching . . .";
     33    var searchTerm = $("#searchTerm").value;
    3434    if (searchTerm.length == 0 || searchTerm.length > 50) {
    35         if (searchTerm.length > 50) document.getElementById("status").innerHTML = "Input is too long.";
    36         else document.getElementById("status").innerHTML = "Waiting for user input.";
    37         document.getElementById("searchTerm").value = "";
     35        if (searchTerm.length > 50) $("#status").innerHTML = "Input is too long.";
     36        else $("#status").innerHTML = "Waiting for user input.";
     37        $("#searchTerm").value = "";
    3838        hideLoadContents();
    3939        return;
     
    6868            data: {
    6969                'action':'wpFileSearch_fetch_file',
    70                 'file' : document.getElementById('searchResults').value
     70                'file' : $('#searchResults').value
    7171            },
    7272            success:function(data) {
    7373                jQuery('#fileContents').html(data);
    7474                jQuery('#status').html("File has been fetched.");           
    75                 document.getElementById('resultsFound').style.display='block';
     75                $('#resultsFound').style.display='block';
    7676            },
    7777            error: function(errorThrown){
  • wpfilesearch/trunk/readme.txt

    r1319859 r1319880  
    55Requires at least: 3.3
    66Tested up to: 4.4
    7 Stable tag: trunk
     7Stable tag: 1.1
    88License: GNU GENERAL PUBLIC LICENSE
    99License URI: http://www.gnu.org/licenses/gpl-3.0.en.html
     
    4646
    4747== Changelog ==
    48 v1.0 - Initial Version
     48* v1.0 - Initial Version
     49* v1.1 - Improved code & bugfix.
     50
     51== Upgrade Notice ==
     52
     53= 1.1 =
     54This version includes code improvements and a bug fix for an error message not being displayed properly.
     55
     56= 1.0 =
     57Initial Version
  • wpfilesearch/trunk/wpFileSearch_ajax.js

    r1307692 r1319880  
    33   
    44function notFound(searchTerm){
    5     document.getElementById("status").innerHTML = "Sorry, none of the files contained "+searchTerm+".";
     5    $("#status").innerHTML = "Sorry, none of the files contained "+searchTerm+".";
    66    hideLoadContents();
    77}
    88
    99function showLoadContents(){
    10     if (document.getElementById('searchResults').value !== ''){
    11         document.getElementById('loadContents').style.display='block';
    12         document.getElementById('status').value = "Fetching file content . . .";
     10    if ($('#searchResults').value !== ''){
     11        $('#loadContents').style.display='block';
     12        $('#status').value = "Fetching file content . . .";
    1313    }
    1414}
    1515
    1616function resultsFound(){
    17     document.getElementById('resultsFound').style.display='block';
     17    $('#resultsFound').style.display='block';
    1818}
    1919
    2020function hideLoadContents(){
    21     document.getElementById('resultsFound').style.display='none';
    22     document.getElementById('loadContents').style.display='none';
     21    $('#resultsFound').style.display='none';
     22    $('#loadContents').style.display='none';
    2323}
    2424
    2525function wpFileSearch() {
    26     document.getElementById("status").innerHTML = "User is typing.";
     26    $("#status").innerHTML = "User is typing.";
    2727    clearTimeout(wpFileSearchTimer);
    2828    wpFileSearchTimer = setTimeout(searchRequest, wpFileSearchDoneTypingInterval);
     
    3030
    3131function searchRequest(){
    32     document.getElementById("status").innerHTML = "Searching . . .";
    33     var searchTerm = document.getElementById("searchTerm").value;
     32    $("#status").innerHTML = "Searching . . .";
     33    var searchTerm = $("#searchTerm").value;
    3434    if (searchTerm.length == 0 || searchTerm.length > 50) {
    35         if (searchTerm.length > 50) document.getElementById("status").innerHTML = "Input is too long.";
    36         else document.getElementById("status").innerHTML = "Waiting for user input.";
    37         document.getElementById("searchTerm").value = "";
     35        if (searchTerm.length > 50) $("#status").innerHTML = "Input is too long.";
     36        else $("#status").innerHTML = "Waiting for user input.";
     37        $("#searchTerm").value = "";
    3838        hideLoadContents();
    3939        return;
     
    6868            data: {
    6969                'action':'wpFileSearch_fetch_file',
    70                 'file' : document.getElementById('searchResults').value
     70                'file' : $('#searchResults').value
    7171            },
    7272            success:function(data) {
    7373                jQuery('#fileContents').html(data);
    7474                jQuery('#status').html("File has been fetched.");           
    75                 document.getElementById('resultsFound').style.display='block';
     75                $('#resultsFound').style.display='block';
    7676            },
    7777            error: function(errorThrown){
Note: See TracChangeset for help on using the changeset viewer.