aboutsummaryrefslogtreecommitdiffstats
path: root/public/javascripts/refinery/refinerycms-blog.js
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2011-08-03 13:17:16 +0300
committerUģis Ozols <ugis.ozolss@gmail.com>2011-08-03 13:17:16 +0300
commit476ad3f15810455fd40cc8374af1a253471b296c (patch)
treec3cc8e7993364f7d0fb9362cf6c0bc6e99873e44 /public/javascripts/refinery/refinerycms-blog.js
parent806aef18583a4fcdc5a88a6e2acfe6b779abea4c (diff)
downloadrefinerycms-blog-476ad3f15810455fd40cc8374af1a253471b296c.tar.gz
refinerycms-blog-476ad3f15810455fd40cc8374af1a253471b296c.tar.bz2
refinerycms-blog-476ad3f15810455fd40cc8374af1a253471b296c.zip
WIP - use asset pipeline.
Diffstat (limited to 'public/javascripts/refinery/refinerycms-blog.js')
-rw-r--r--public/javascripts/refinery/refinerycms-blog.js50
1 files changed, 0 insertions, 50 deletions
diff --git a/public/javascripts/refinery/refinerycms-blog.js b/public/javascripts/refinery/refinerycms-blog.js
deleted file mode 100644
index e730c6f..0000000
--- a/public/javascripts/refinery/refinerycms-blog.js
+++ /dev/null
@@ -1,50 +0,0 @@
-$(document).ready(function(){
- $('nav#actions.multilist > ul:not(.search_list) li a[href$="' + window.location.pathname + '"]')
- .parent().addClass('selected');
- if($('nav#actions.multilist > ul:not(.search_list) li.selected').length == 0) {
- $('nav#actions.multilist > ul:not(.search_list) li a:nth(1)').parent().addClass('selected');
- }
-
- $('nav#actions.multilist > ul:not(.search_list) li > a').each(function(i,a){
- if ($(this).data('dialog-title') == null) {
- $(this).bind('click', function(){
- $(this).css('background-image', "url('/images/refinery/icons/ajax-loader.gif') !important");
- });
- }
- });
-
- $('ul.collapsible_menu').each(function(i, ul) {
- (first_li = $(this).children('li:first')).after(div=$("<div></div>"));
-
- $("<span class='arrow'>&nbsp;</span>").appendTo(first_li)
-
- if (($(this).children('li.selected')).length == 0) {
- div.hide();
- first_li.addClass("closed");
- }
- $(this).children('li:not(:first)').appendTo(div);
-
- first_li.find('> a, > span.arrow').click(function(e){
- $(this).parent().toggleClass("closed");
- $(this).parent().toggleClass("open");
-
- $(this).parent().next('div').animate({
- opacity: 'toggle'
- , height: 'toggle'
- }, 250, $.proxy(function(){
- $(this).css('background-image', null);
- }, $(this))
- );
- e.preventDefault();
- });
- });
-
- $('.success_icon, .failure_icon').bind('click', function(e) {
- $.get($(this).attr('href'), $.proxy(function(data){
- $(this).css('background-image', null)
- .removeClass('failure_icon').removeClass('success_icon')
- .addClass(data.enabled ? 'success_icon' : 'failure_icon');
- }, $(this)));
- e.preventDefault();
- });
-}); \ No newline at end of file