From 84face159d69cf46e4996fa6965d064790add5cb Mon Sep 17 00:00:00 2001 From: Dan Hansen & Sarah Mei Date: Thu, 25 Nov 2010 21:44:57 -0800 Subject: [PATCH] Removing unused js --- config/assets.yml | 4 ---- public/javascripts/image-picker.js | 16 ---------------- public/javascripts/photo.js | 6 ------ 3 files changed, 26 deletions(-) delete mode 100644 public/javascripts/image-picker.js delete mode 100644 public/javascripts/photo.js diff --git a/config/assets.yml b/config/assets.yml index 209a864c7..417d68050 100644 --- a/config/assets.yml +++ b/config/assets.yml @@ -12,7 +12,6 @@ javascripts: - public/javascripts/vendor/fancybox/jquery.fancybox-1.3.1.pack.js - public/javascripts/vendor/fileuploader.js - public/javascripts/view.js - - public/javascripts/image-picker.js - public/javascripts/stream.js mobile: - public/javascripts/vendor/jquery144.min.js @@ -24,9 +23,6 @@ javascripts: - public/javascripts/vendor/mailchimp/jquery.form.js - public/javascripts/vendor/mailchimp/jquery.validate.js - public/javascripts/vendor/mailchimp/jquery126.min.js - photo: - - public/javascripts/photo.js - - public/javascripts/image-picker.js aspects: - public/javascripts/vendor/jquery-ui-1.8.6.custom.min.js - public/javascripts/aspect-edit.js diff --git a/public/javascripts/image-picker.js b/public/javascripts/image-picker.js deleted file mode 100644 index eacf7822d..000000000 --- a/public/javascripts/image-picker.js +++ /dev/null @@ -1,16 +0,0 @@ -/* Copyright (c) 2010, Diaspora Inc. This file is -* licensed under the Affero General Public License version 3 or later. See -* the COPYRIGHT file. -*/ -$(document).ready(function() { - $('div#image_picker div.small_photo').click( function() { - var $this = $(this); - document.getElementById("image_url_field").value = this.id; - - $('div#image_picker div.small_photo.selected').removeClass('selected') - .children("input[type='checkbox']").attr("checked", false); - - $this.addClass('selected') - .children("input[type='checkbox']").attr("checked", true); - }); -}); diff --git a/public/javascripts/photo.js b/public/javascripts/photo.js deleted file mode 100644 index 85649d625..000000000 --- a/public/javascripts/photo.js +++ /dev/null @@ -1,6 +0,0 @@ -/* Copyright (c) 2010, Diaspora Inc. This file is -* licensed under the Affero General Public License version 3 or later. See -* the COPYRIGHT file. -*/ - -