attach on() events to external storage table, dom events in the table will always bubble up here

This commit is contained in:
Jörn Friedrich Dreyer 2013-02-20 12:06:08 +01:00
parent 702c27b0e6
commit 05a8766cbc
1 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ OC.MountConfig={
$(document).ready(function() {
$('.chzn-select').chosen();
$('#selectBackend').on('change', function() {
$('#externalStorage').on('change', '#selectBackend', function() {
var tr = $(this).parent().parent();
$('#externalStorage tbody').append($(tr).clone());
$('#externalStorage tbody tr').last().find('.mountPoint input').val('');
@ -243,11 +243,11 @@ $(document).ready(function() {
OC.MountConfig.saveStorage($(this).parent().parent().parent());
});
$('.applicable').on('change', '.chzn-select', function() {
$('#externalStorage').on('change', '.applicable .chzn-select', function() {
OC.MountConfig.saveStorage($(this).parent().parent());
});
$('td.remove>img').on('click', function() {
$('#externalStorage').on('click', 'td.remove>img', function() {
var tr = $(this).parent().parent();
var mountPoint = $(tr).find('.mountPoint input').val();
if ( ! mountPoint) {