Vergleich admin/jscripts/codemirror/addon/dialog/dialog.js - 1.8.12 - 1.8.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 56Zeile 56

var inp = dialog.getElementsByTagName("input")[0], button;
if (inp) {


var inp = dialog.getElementsByTagName("input")[0], button;
if (inp) {

 
      inp.focus();


      if (options.value) {
inp.value = options.value;

      if (options.value) {
inp.value = options.value;

        inp.select();



        if (options.selectValueOnOpen !== false) {
inp.select();
}

      }

if (options.onInput)

      }

if (options.onInput)

Zeile 77Zeile 81
      });

if (options.closeOnBlur !== false) CodeMirror.on(inp, "blur", close);

      });

if (options.closeOnBlur !== false) CodeMirror.on(inp, "blur", close);


inp.focus();

 
    } else if (button = dialog.getElementsByTagName("button")[0]) {
CodeMirror.on(button, "click", function() {
close();

    } else if (button = dialog.getElementsByTagName("button")[0]) {
CodeMirror.on(button, "click", function() {
close();