summaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-02-03 21:55:54 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2013-02-03 21:55:54 -0800
commit04b97a1906c40451880ef3534fc7fd87fcbdc438 (patch)
treeed0aac53a68322cf52204402f68e1f91d0a2306d /apps/files/js/files.js
parent5ceddabaa65396d42fe67b4b6de5cd72bcb28f11 (diff)
parentb1da1db0eb5d738d5d5e5379796c048614d2ba00 (diff)
downloadnextcloud-server-04b97a1906c40451880ef3534fc7fd87fcbdc438.tar.gz
nextcloud-server-04b97a1906c40451880ef3534fc7fd87fcbdc438.zip
Merge pull request #1229 from owncloud/from_live_to_on
replace live() with on() in core js
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 8aec701e53f..7c377afc620 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -110,7 +110,7 @@ $(document).ready(function() {
}
// Triggers invisible file input
- $('#upload a').live('click', function() {
+ $('#upload a').on('click', function() {
$(this).parent().children('#file_upload_start').trigger('click');
return false;
});
@@ -123,7 +123,7 @@ $(document).ready(function() {
var lastChecked;
// Sets the file link behaviour :
- $('td.filename a').live('click',function(event) {
+ $('#fileList').on('click','td.filename a',function(event) {
if (event.ctrlKey || event.shiftKey) {
event.preventDefault();
if (event.shiftKey) {
@@ -189,7 +189,7 @@ $(document).ready(function() {
procesSelection();
});
- $('td.filename input:checkbox').live('change',function(event) {
+ $('#fileList').on('change', 'td.filename input:checkbox',function(event) {
if (event.shiftKey) {
var last = $(lastChecked).parent().parent().prevAll().length;
var first = $(this).parent().parent().prevAll().length;