diff --git a/js/dataTables.cellEdit.js b/js/dataTables.cellEdit.js index 974810c..187d469 100644 --- a/js/dataTables.cellEdit.js +++ b/js/dataTables.cellEdit.js @@ -160,7 +160,7 @@ function getInputHtml(currentColumnIndex, settings, oldValue) { } switch (inputType) { case "list": - input.html = startWrapperHtml + ""; $.each(inputSetting.options, function (index, option) { if (oldValue == option.value) { input.html = input.html + "" @@ -172,7 +172,7 @@ function getInputHtml(currentColumnIndex, settings, oldValue) { input.focus = false; break; case "list-confirm": // List w/ confirm - input.html = startWrapperHtml + ""; $.each(inputSetting.options, function (index, option) { if (oldValue == option.value) { input.html = input.html + "" @@ -180,7 +180,7 @@ function getInputHtml(currentColumnIndex, settings, oldValue) { input.html = input.html + "" } }); - input.html = input.html + " Confirm Cancel" + endWrapperHtml; + input.html = input.html + " Confirm Cancel" + endWrapperHtml; input.focus = false; break; case "datepicker": //Both datepicker options work best when confirming the values @@ -191,7 +191,7 @@ function getInputHtml(currentColumnIndex, settings, oldValue) { break; } jQuery(".datepick").datepicker("destroy"); - input.html = startWrapperHtml + "  Confirm Cancel" + endWrapperHtml; + input.html = startWrapperHtml + "  Confirm Cancel" + endWrapperHtml; setTimeout(function () { //Set timeout to allow the script to write the input.html before triggering the datepicker var icon = "http://jqueryui.com/resources/demos/datepicker/images/calendar.gif"; // Allow the user to provide icon @@ -208,22 +208,22 @@ function getInputHtml(currentColumnIndex, settings, oldValue) { },100); break; case "text-confirm": // text input w/ confirm - input.html = startWrapperHtml + " Confirm Cancel" + endWrapperHtml; + input.html = startWrapperHtml + " Confirm Cancel" + endWrapperHtml; break; case "undefined-confirm": // text input w/ confirm - input.html = startWrapperHtml + " Confirm Cancel" + endWrapperHtml; + input.html = startWrapperHtml + " Confirm Cancel" + endWrapperHtml; break; case "textarea": - input.html = startWrapperHtml + "" + endWrapperHtml; + input.html = startWrapperHtml + "" + endWrapperHtml; break; case "textarea-confirm": - input.html = startWrapperHtml + "Confirm Cancel" + endWrapperHtml; + input.html = startWrapperHtml + "Confirm Cancel" + endWrapperHtml; break; case "number-confirm" : - input.html = startWrapperHtml + " Confirm Cancel" + endWrapperHtml; + input.html = startWrapperHtml + " Confirm Cancel" + endWrapperHtml; break; default: // text input - input.html = startWrapperHtml + "" + endWrapperHtml; + input.html = startWrapperHtml + "" + endWrapperHtml; break; } return input;