mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-19 02:39:54 +00:00
Remove trailing whitespace
This commit is contained in:
parent
9d0b51a33e
commit
fa5c2476f2
1 changed files with 73 additions and 73 deletions
|
@ -9,15 +9,15 @@
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*jslint eqeqeq: true, browser: true */
|
/*jslint eqeqeq: true, browser: true */
|
||||||
/*global jQuery */
|
/*global jQuery */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -29,39 +29,39 @@
|
||||||
* @type jQuery
|
* @type jQuery
|
||||||
* @param searchData : [required] Can be one of three things; a JSON string which specified the search data, an object that is representative of a parsed JSON string or a function which returns either of these two things.
|
* @param searchData : [required] Can be one of three things; a JSON string which specified the search data, an object that is representative of a parsed JSON string or a function which returns either of these two things.
|
||||||
* expected object format example; (either as raw object or JSON string)
|
* expected object format example; (either as raw object or JSON string)
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
text: 'Thomas',
|
text: 'Thomas',
|
||||||
image: 'img/avator1.jpg', // optional
|
image: 'img/avator1.jpg', // optional
|
||||||
extra: 'www.thomas.com' // optional
|
extra: 'www.thomas.com' // optional
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
text: 'Frederic',
|
text: 'Frederic',
|
||||||
image: 'img/avator2.jpg', // optional
|
image: 'img/avator2.jpg', // optional
|
||||||
extra: 'www.freddy.com' // optional
|
extra: 'www.freddy.com' // optional
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
text: 'James',
|
text: 'James',
|
||||||
image: 'img/avator2.jpg', // optional
|
image: 'img/avator2.jpg', // optional
|
||||||
extra: 'www.james.com' // optional
|
extra: 'www.james.com' // optional
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
* @param Object settings; [optional]
|
* @param Object settings; [optional]
|
||||||
* minCharacters : [default 1] Number of characters that the input should accept before running a search.
|
* minCharacters : [default 1] Number of characters that the input should accept before running a search.
|
||||||
* maxResults: [default undefined] If set then no more results than this number will be found.
|
* maxResults: [default undefined] If set then no more results than this number will be found.
|
||||||
* wildCard : [default ''] A character to be used as a match all wildcard when searching. Leaving empty will mean results are matched inside
|
* wildCard : [default ''] A character to be used as a match all wildcard when searching. Leaving empty will mean results are matched inside
|
||||||
* strings but if a wildCard is present then results are matched from the beginning of strings.
|
* strings but if a wildCard is present then results are matched from the beginning of strings.
|
||||||
* caseSensitive : [defautl false] True if the filter search's are to be case sensitive.
|
* caseSensitive : [defautl false] True if the filter search's are to be case sensitive.
|
||||||
* notCharacter : [default !] The character to use at the start of any search text to specify that the results should NOT contain the following text.
|
* notCharacter : [default !] The character to use at the start of any search text to specify that the results should NOT contain the following text.
|
||||||
* maxHeight : [default 350] This is the maximum height that the results box can reach before scroll bars are shown instead of getting taller.
|
* maxHeight : [default 350] This is the maximum height that the results box can reach before scroll bars are shown instead of getting taller.
|
||||||
* highlightMatches: [default true] This will add strong tags around the text that matches the search text in each result.
|
* highlightMatches: [default true] This will add strong tags around the text that matches the search text in each result.
|
||||||
* onSelect : [default undefined] Function that gets called once a result has been selected, gets passed in the object version of the result as specified in the json string
|
* onSelect : [default undefined] Function that gets called once a result has been selected, gets passed in the object version of the result as specified in the json string
|
||||||
* ajaxResults : [default false] If this is set to true then you must specify a function as the searchData construction parameter. This is because when this
|
* ajaxResults : [default false] If this is set to true then you must specify a function as the searchData construction parameter. This is because when this
|
||||||
* settings is true then results are retrieved from an external function each time they are needed instead of being retrieved from the data given on
|
* settings is true then results are retrieved from an external function each time they are needed instead of being retrieved from the data given on
|
||||||
* contruction. The searchData function must return a JSON string of resulting objects or the object which represents the JSON string. The function is
|
* contruction. The searchData function must return a JSON string of resulting objects or the object which represents the JSON string. The function is
|
||||||
* passed the following paramenters;
|
* passed the following paramenters;
|
||||||
* 1. The search text typed into the input box
|
* 1. The search text typed into the input box
|
||||||
* 2. The current wildCard setting
|
* 2. The current wildCard setting
|
||||||
|
@ -216,7 +216,7 @@
|
||||||
// an external function each time they are needed else they are retrieved from the data
|
// an external function each time they are needed else they are retrieved from the data
|
||||||
// given on contruction.
|
// given on contruction.
|
||||||
if (settings.ajaxResults === true) {
|
if (settings.ajaxResults === true) {
|
||||||
resultObjects = searchData(this.value, settings.wildCard,
|
resultObjects = searchData(this.value, settings.wildCard,
|
||||||
settings.caseSensitive,
|
settings.caseSensitive,
|
||||||
settings.notCharacter);
|
settings.notCharacter);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue