Subversion Repositories SmartDukaan

Rev

Rev 11719 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11719 Rev 11938
Line 24... Line 24...
24
  
24
  
25
function spliturl(url)
25
function spliturl(url)
26
{
26
{
27
 fullpath = url.substring(0, (url.indexOf("?") == -1) ? url.length : url.indexOf("?"));
27
 fullpath = url.substring(0, (url.indexOf("?") == -1) ? url.length : url.indexOf("?"));
28
 params =fullpath.split('<?=base_url()?>');
28
 params =fullpath.split('<?=base_url()?>');
29
 //console.log(params[1]);
-
 
30
 getparams = url.split('?');
29
 getparams = url.split('?');
31
 //console.log(getparams[1]);
-
 
32
 var output = new Array();
30
 var output = new Array();
33
 output[0] = params[1]; //data controller to parameters
31
 output[0] = params[1]; //data controller to parameters
34
 output[1] = getparams[1];//get input
32
 output[1] = getparams[1];//get input
35
 output[2]=fullpath; //full url expcept get input
33
 output[2]=fullpath; //full url expcept get input
36
 //console.log(output);
-
 
37
 return output;
34
 return output;
38
}
35
}
39
var showmore;
36
var showmore;
40
var nextpageload = true;
37
var nextpageload = true;
41
function showMoreProducts()
38
function showMoreProducts()
Line 236... Line 233...
236
    			
233
    			
237
    			return false;
234
    			return false;
238
    		}
235
    		}
239
    if (getDocHeight() <= getScrollXY()[1] + window.innerHeight + 300) {
236
    if (getDocHeight() <= getScrollXY()[1] + window.innerHeight + 300) {
240
    	if(((document.getElementById('page').innerHTML%3) != 0) && nextpageload==true){
237
    	if(((document.getElementById('page').innerHTML%3) != 0) && nextpageload==true){
241
    		//console.log(x);
-
 
242
    		total = document.getElementById('count').value;
238
    		total = document.getElementById('count').value;
243
        	cpage = document.getElementById('page').innerHTML;
239
        	cpage = document.getElementById('page').innerHTML;
244
        	nextpageload=false;
240
        	nextpageload=false;
245
    		if (parseInt(total) <= parseInt(cpage)) {
241
    		if (parseInt(total) <= parseInt(cpage)) {
246
            showmore = 'none';
242
            showmore = 'none';