summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-18 16:30:24 +0300
committerAndrew Dolgov <[email protected]>2010-11-18 16:32:25 +0300
commite1c619bc240557f6029abdbf1222dc90ffb87fa2 (patch)
tree3ca769fbd4f2226812baa0c0a8b061e8a603e4c6 /modules
parent4b386e638b367901300d2444aca510f3521e9d1f (diff)
pref-labels: drop scriptaculous inplace editor
Diffstat (limited to 'modules')
-rw-r--r--modules/pref-labels.php20
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>";