- Timestamp:
- 12.12.2011 21:31:39 (5 months ago)
- Location:
- ZMS/trunk/plugins/www/jquery
- Files:
-
- 2 edited
-
jquery-all.min.js (modified) (1 diff)
-
plugin/jquery.plugin.extensions.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/plugins/www/jquery/jquery-all.min.js
r1756 r1757 26 26 return self},getPlugin:function(){return $.plugin.apply(this,arguments)} 27 27 })}); 28 String.prototype.removeWhiteSpaces=function(){return(this.replace(/\s+/g,""))};String.prototype.leftTrim=function(){return(this.replace(/^\s+/,""))};String.prototype.rightTrim=function(){return(this.replace(/\s+$/,""))};String.prototype.basicTrim=function(){return(this.replace(/\s+$/,"").replace(/^\s+/,""))};String.prototype.superTrim=function(){return(this.replace(/\s+/g," ").replace(/\s+$/,"").replace(/^\s+/,""))};String.prototype.startsWith=function(str){return(this.match("^"+str)==str)};String.prototype.endsWith=function(str){return(this.match(str+"$")==str)};Array.prototype.indexOf=function(obj){var i,idx=-1;for(i=0;i<this.length;i++){if(this[i]==obj){idx=i;break}}return idx};Array.prototype.lastIndexOf=function(obj){this.reverse();var i,idx=-1;for(i=0;i<this.length;i++){if(this[i]==obj){idx=(this.length-1-i);break}}this.reverse();return idx};Array.prototype.contains=function(obj){var i,listed=false;for(i=0;i<this.length;i++){if(this[i]==obj){listed=true;break}}return listed};var zmiParams={};$(function(){var href=self.location.href;var delimiter_list=['?','#'];for(var h=0;h < delimiter_list.length;h++){var delimiter=delimiter_list[h];var i=href.indexOf(delimiter);if(i > 0){var query_string=href.substr(i+1);var l=query_string.split('&');for(var j=0;j < l.length;j++){i=l[j].indexOf('=');if(i < 0){break} 28 String.prototype.removeWhiteSpaces=function(){return(this.replace(/\s+/g,""))};String.prototype.leftTrim=function(){return(this.replace(/^\s+/,""))};String.prototype.rightTrim=function(){return(this.replace(/\s+$/,""))};String.prototype.basicTrim=function(){return(this.replace(/\s+$/,"").replace(/^\s+/,""))};String.prototype.superTrim=function(){return(this.replace(/\s+/g," ").replace(/\s+$/,"").replace(/^\s+/,""))};String.prototype.startsWith=function(str){return(this.match("^"+str)==str)};String.prototype.endsWith=function(str){return(this.match(str+"$")==str)};Array.prototype.indexOf=function(obj){var i,idx=-1;for(i=0;i<this.length;i++){if(this[i]==obj){idx=i;break}}return idx};Array.prototype.lastIndexOf=function(obj){this.reverse();var i,idx=-1;for(i=0;i<this.length;i++){if(this[i]==obj){idx=(this.length-1-i);break}}this.reverse();return idx};Array.prototype.contains=function(obj){var i,listed=false;for(i=0;i<this.length;i++){if(this[i]==obj){listed=true;break}}return listed};var zmiParams={};$(function(){var href=self.location.href;var delimiter_list=['?','#'];for(var h=0;h < delimiter_list.length;h++){var delimiter=delimiter_list[h];var i=href.indexOf(delimiter);if(i > 0){var query_string=href.substr(i+1);if(h < delimiter_list.length-1){i=query_string.indexOf(delimiter_list[h+1]);if(i > 0){query_string=query_string.substr(0,i)}} 29 var l=query_string.split('&');for(var j=0;j < l.length;j++){i=l[j].indexOf('=');if(i < 0){break} 29 30 if(typeof zmiParams[l[j].substr(0,i)]=="undefined"){zmiParams[l[j].substr(0,i)]=unescape(l[j].substr(i+1))}} 30 31 }} -
ZMS/trunk/plugins/www/jquery/plugin/jquery.plugin.extensions.js
r1755 r1757 28 28 if (i > 0) { 29 29 var query_string = href.substr(i+1); 30 if (h < delimiter_list.length-1) { 31 i = query_string.indexOf(delimiter_list[h+1]); 32 if (i > 0) { 33 query_string = query_string.substr(0,i); 34 } 35 } 30 36 var l = query_string.split('&'); 31 37 for ( var j = 0; j < l.length; j++) {
Note: See TracChangeset
for help on using the changeset viewer.
