1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-09 16:09:15 +00:00

pref-labels: drop scriptaculous inplace editor

This commit is contained in:
Andrew Dolgov
2010-11-18 16:30:24 +03:00
parent 4b386e638b
commit e1c619bc24
2 changed files with 18 additions and 30 deletions

View File

@@ -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>";