aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.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/filelist.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/filelist.js')
-rw-r--r--apps/files/js/filelist.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index d0810f70145..72b353b48c2 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -309,7 +309,7 @@ var FileList={
$(document).ready(function(){
$('#notification').hide();
- $('#notification .undo').live('click', function(){
+ $('#notification').on('click', '.undo', function(){
if (FileList.deleteFiles) {
$.each(FileList.deleteFiles,function(index,file){
$('tr').filterAttr('data-file',file).show();
@@ -335,16 +335,16 @@ $(document).ready(function(){
FileList.lastAction = null;
OC.Notification.hide();
});
- $('#notification .replace').live('click', function() {
+ $('#notification').on('click', '.replace', function() {
OC.Notification.hide(function() {
FileList.replace($('#notification').data('oldName'), $('#notification').data('newName'), $('#notification').data('isNewFile'));
});
});
- $('#notification .suggest').live('click', function() {
+ $('#notification').on('click', '.suggest', function() {
$('tr').filterAttr('data-file', $('#notification').data('oldName')).show();
OC.Notification.hide();
});
- $('#notification .cancel').live('click', function() {
+ $('#notification').on('click', '.cancel', function() {
if ($('#notification').data('isNewFile')) {
FileList.deleteCanceled = false;
FileList.deleteFiles = [$('#notification').data('oldName')];