Sublime Forum

Not showing correct directory / file contents [SOLVED]

#1

Windows 7 64bit, this bug is not present on Mac client with same codebase.
Sublime is v2.01, build 2217

[code] Directory of C:…\create-a-rug

09/28/2012 09:36 AM .
09/28/2012 09:36 AM …
09/28/2012 09:46 AM 449 getBindings.php
09/28/2012 09:46 AM 448 getProducts.php
09/28/2012 09:46 AM 388 getRugImage.php
09/28/2012 09:46 AM 1,339 index.php
4 File(s) 2,624 bytes
2 Dir(s) 279,201,669,120 bytes free

[/code]

ST2 only shows “getProducts.php” and “index.php” in sidebar.

Version of global.js that ST2 opens in editor pane:

[code]$(window).load(function(){

 $('#spinner').delay(800).fadeOut(400);

 $(".product_box a").lightBox({
	  minWidth:400,
    maxHeight: 1248,
    maxWidth: 900
});


$('#footer_email').click(function() { 
	window.location = 'mailto:info@dmifloors.com';
 });
 $('#logo').click(function() {
	 window.location='/index_new.php';
 });
 $('.nav_button').mouseover(function(event) {

// $(event.target).addClass(‘nav_button_hover’);
// alert(event.target.href);
// $(event.target).find(‘a’).css(‘color’, ‘#165A35’);
});
$(’.nav_button’).mouseout(function(event) {
// $(event.target).removeClass(‘nav_button_hover’);
// $(event.target).find(‘a’).css(‘color’, ‘#fff’);
});

// $(’.slideshow’).cycle({
// fx: ‘fade’ // choose your transition type, ex: fade, scrollUp, shuffle, etc…
// });
$(“div#makeMeScrollable”).smoothDivScroll({
autoScroll: “enabled” ,
autoScrollDirection: “endlessloopright”,
autoScrollStep: 1,
autoScrollInterval: 10,

		visibleHotSpots: "always"
	});

	$('div#makeMeScrollable').mouseout(function(){
	  $("div#makeMeScrollable").smoothDivScroll("startAutoScroll");
		
	});

$('div#makeMeScrollable').mouseover(function(){
	  $("div#makeMeScrollable").smoothDivScroll("stopAutoScroll");
	});

}); [/code]

Version live on server or opened with Aptana Studio 3 ( had it sitting around on PC, but don’t use it for coding ):

$(window).load(function(){
	 
	 $('#spinner').delay(800).fadeOut(400);
  
	 $(".product_box a").lightBox({
		  minWidth:400,
        maxHeight: 1248,
        maxWidth: 900
    });
  
	
    $('#footer_email').click(function() { 
		window.location = 'mailto:info@dmifloors.com';
	 });
	 $('#logo').click(function() {
		 window.location='/index_new.php';
	 });
	 $('.nav_button').mouseover(function(event) {
// 		  $(event.target).addClass('nav_button_hover');
// 		alert(event.target.href);
// 		$(event.target).find('a').css('color', '#165A35');
	 });
	 $('.nav_button').mouseout(function(event) {
// 		  $(event.target).removeClass('nav_button_hover');
// 		$(event.target).find('a').css('color', '#fff');
	 });

// 	 $('.slideshow').cycle({
// 		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
// 	});
	 $("div#makeMeScrollable").smoothDivScroll({ 
			autoScroll: "enabled" , 
			autoScrollDirection: "endlessloopright", 
			autoScrollStep: 1, 
			autoScrollInterval: 10,	
			
			visibleHotSpots: "always"
		});

		$('div#makeMeScrollable').mouseout(function(){
		  $("div#makeMeScrollable").smoothDivScroll("startAutoScroll");
			
		});

	$('div#makeMeScrollable').mouseover(function(){
		  $("div#makeMeScrollable").smoothDivScroll("stopAutoScroll");
		});

  });

var loadProducts = function( cid ) {
	var url = 'getProducts.php?cid=' + cid;

	console.log( 'adding options' );
	$( '#colorSelect option' ).remove();
	$.getJSON( url, function(data) {
		$.each(data, function(key, val) {
	    	$( '#colorSelect' ).append( val );
		});
	});

	loadRug();
	loadBinding();

	return this;

}

var loadRug = function( rid ) {
	var url = 'getRugImage.php?rid=';

	if ( !rid ) {
		rid = $( '#colorSelect option:selected' ).attr( 'value' );
	}

	url+= rid;

	$.getJSON( url, function(data) {
		$( '#show-rug' ).attr( 'src', '/_img/products/' + data );
	});

	return this;

}

var loadBinding = function( img ) {
	var path = img = "/_img/bindings/";

	if ( !img ) {
		img = $( '#bindingSelect option:selected' ).attr( 'value' );
	}

	path+= img;

	$( '#show-binding' ).attr( 'src', path );

	return this;
}
0 Likes

#2

Red Herring, there were two copies of the codebase on disk and Windows has a crappy way of naming user directories. Please ignore. >:|

0 Likes