Skip to content

Commit

Permalink
#56 switched event binding
Browse files Browse the repository at this point in the history
  • Loading branch information
SCullman committed Aug 10, 2019
1 parent 4f2086c commit 9d9adcd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CaptionValueEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
});

// tabelle auslesen
$("#parse").live('click', function () {
$("#cveditor").on('click', '#parse', function () {
var array = new Array();

$("#inputTbl > tbody tr").each(function () {
Expand All @@ -91,19 +91,18 @@
$("#popupCaptions").hide();
dialog.dialog("close");
});

$("#cancelEdit").live('click', function () {
$("#cveditor").on('click', '#cancelEdit', function () {
$("#popupCaptions").hide();
dialog.dialog("close");
});

// zeile entfernen
$('a.rem').live('click', function () {
$("#cveditor").on('click', 'a.rem', function () {
$(this).parent().parent().remove();
});

// neue zeile
$('a.add').live('click', function () {
$("#cveditor").on('click', 'a.add', function () {
var values = $(this).parent().siblings().find(':text');
var first = $.trim(values.first().val());
var last = $.trim(values.last().val());
Expand Down

0 comments on commit 9d9adcd

Please sign in to comment.