Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrading to Rails 3.1.1 solved some problems, but uglifier still cau…
…sing problems, so disabling it. reverting to old cycle widget solved the problem we were getting with 'Cannot read property 'cycleW' of undefined'
- Loading branch information
Daniel Nelson
committed
Nov 17, 2011
1 parent
be73403
commit 8c38370
Showing
26 changed files
with
87 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
/* http://docs.angularjs.org/#!angular.widget */ | ||
|
||
angular.directive("my:cycle", function(expr,el){ | ||
return function(container){ | ||
var scope = this; | ||
var $defer = scope.$service("$defer"); | ||
|
||
scope.$watch(expr, function(value) { | ||
if (value < 1) return; | ||
|
||
$defer(function() { | ||
$(container).cycle({ fx: 'fade', | ||
speed: 500, | ||
timeout: 3000, | ||
pause: 1, | ||
next: '#next', | ||
prev: '#prev'}); | ||
}); | ||
}); | ||
} | ||
angular.directive('my:cycle', function(expr,el){ | ||
return function(container){ | ||
this.$watch(function() { | ||
if ($(container).children().length) { | ||
$(container).cycle({ fx: 'fade', | ||
speed: 500, | ||
timeout: 3000, | ||
pause: 1, | ||
next: '#next', | ||
prev: '#prev' }); | ||
} | ||
}); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
public/assets/angular-370720a1b8d37783a8d5a03a2b96c0c4.min.js
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-676 Bytes
public/assets/application-3597a8525f7eb488b1becb03bac7dccf.css.gz
Binary file not shown.
21 changes: 0 additions & 21 deletions
21
public/assets/application-c4f3e42bdc641eb93cbb92b850b0b560.js
This file was deleted.
Oops, something went wrong.
Binary file not shown.
7 changes: 0 additions & 7 deletions
7
public/assets/galleries-1f3fd796ef152c68151cd37b0ca5c400.html
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
public/assets/jquery-5c5f90ee142dc52c37000f9a4a6bbb7e.cycle.js
This file was deleted.
Oops, something went wrong.
Binary file not shown.
18 changes: 0 additions & 18 deletions
18
public/assets/jquery-8a50feed8d29566738ad005e19fe1c2d.min.js
This file was deleted.
Oops, something went wrong.
Binary file not shown.
16 changes: 0 additions & 16 deletions
16
public/assets/jquery-ui-7e33882a28fc84ad0e0e47e46cbf901c.min.js
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
public/assets/photographers-b7518de1283a043101402347306500d0.html
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
public/assets/photos-6dcee642ba01c7341c1d5296abd34d92.html
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.