Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorSteffen van Bergerem <svbergerem@online.de>2016-02-14 04:48:51 +0300
committerSteffen van Bergerem <svbergerem@online.de>2016-02-14 04:48:51 +0300
commit89f21e87f89584b0c01e1fbc7e4dcd4286e6b72b (patch)
treedacf13877db46136237716c7fe45205cdd96035c /public
parent2a47b889d14e603e941045b4804ad1f76ba6afd0 (diff)
Remove unused code
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/custom-mobile-scripting.js52
1 files changed, 0 insertions, 52 deletions
diff --git a/public/javascripts/custom-mobile-scripting.js b/public/javascripts/custom-mobile-scripting.js
deleted file mode 100644
index 900347dd6..000000000
--- a/public/javascripts/custom-mobile-scripting.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/* Copyright (c) 2010-2011, Diaspora Inc. This file is
-* licensed under the Affero General Public License version 3 or later. See
-* the COPYRIGHT file.
-*/
-
-
-$(document).bind("mobileinit", function() {
- $.extend($.mobile, {
- ajaxLinksEnabled: false,
- ajaxEnabled: false,
- ajaxFormsEnabled: false
-
- });
- $.mobile.selectmenu.prototype.options.nativeMenu = false;
-});
-
-
-$(document).ready(function(){
- $(".like_action.inactive").bind('tap', function(evt){
- evt.preventDefault();
- var target = $(this),
- postId = target.data('post-id');
-
- $.ajax({
- url: '/posts/'+postId+'/likes.json',
- type: 'POST',
- complete: function(data){
- target.addClass('inactive')
- .removeClass('active')
- .data('post-id', postId);
- }
- });
- });
-
- $(".like_action.active").bind('tap', function(evt){
- evt.preventDefault();
- var target = $(this),
- postId = $(this).data('post-id'),
- likeId = $(this).data('like-id');
-
-
- $.ajax({
- url: '/posts/'+postId+'/likes/'+likeId+'.json',
- type: 'DELETE',
- complete: function(data){
- target.addClass('inactive')
- .removeClass('active')
- .data('like-id', '');
- }
- });
- });
-});