diff options
Diffstat (limited to 'modules/pref-labels.php')
-rw-r--r-- | modules/pref-labels.php | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/modules/pref-labels.php b/modules/pref-labels.php index cc92985a9..467928416 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -252,10 +252,22 @@ print_color_picker($id); print "</div>"; - - print "<span class='prefsLabelEntry' - id=\"LILT-".$line["id"]."\">" . $line["caption"] . - "</span>"; + print "<span dojoType=\"dijit.InlineEditBox\" + width=\"300px\" autoSave=\"false\" + label-id=\"".$line["id"]."\">" . $line["caption"] . + "<script type=\"dojo/method\" event=\"onChange\" args=\"item\"> + var elem = this; + dojo.xhrPost({ + url: 'backend.php', + content: {op: 'pref-labels', subop: 'save', + value: this.value, + id: this.srcNodeRef.getAttribute('label-id')}, + load: function(response) { + elem.attr('value', response); + } + }); + </script> + </span>"; print "</td>"; |