Subversion Repositories cheapmusic

Rev

Rev 137 | Rev 141 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 137 Rev 138
Line 315... Line 315...
315
		$('.flexdatalist').flexdatalist();
315
		$('.flexdatalist').flexdatalist();
316
		$(function() {
316
		$(function() {
317
			$("input[id='searchTerm-flexdatalist']").clearer();
317
			$("input[id='searchTerm-flexdatalist']").clearer();
318
		});
318
		});
319
		$('.flexdatalist').flexdatalist({
319
		$('.flexdatalist').flexdatalist({
-
 
320
            valueProperty: "value",
320
			minLength: 0,
321
			minLength: 0,
321
			searchContain: true,
322
			searchContain: true,
-
 
323
                        searchByWord: true,
322
			noResultsText: ""
324
			noResultsText: ""
323
		}); /* reset after running clearer */
325
		}); /* reset after running clearer */
-
 
326
		$("input[id='searchTerm-flexdatalist']").val($("input[id='searchTerm']").val());
324
	} else {
327
	} else {
325
		setTimeout(function () { flexdatalistSetup(); }, 100);
328
		setTimeout(function () { flexdatalistSetup(); }, 100);
326
	}
329
	}
327
}
330
}
328
 
331
 
Line 491... Line 494...
491
 
494
 
492
function topFunction() {
495
function topFunction() {
493
	document.body.scrollTop = document.documentElement.scrollTop = 0;
496
	document.body.scrollTop = document.documentElement.scrollTop = 0;
494
}
497
}
495
 
498
 
496
HTMLInputElement.prototype.toProperCase = function () {
499
String.prototype.toProperCase = function () {
497
    this.value = this.value.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
500
    return this.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
498
    return this.value;
-
 
499
};
501
};