diff options
author | Andrew Dolgov <[email protected]> | 2010-11-18 16:44:51 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-18 16:44:51 +0300 |
commit | 44e05f79e9fb5195f0b4a8dcfb991689dd18698e (patch) | |
tree | 33e0aa3583c6c3ec4a86ddff443a1aaecca1a1e7 /modules/pref-feeds.php | |
parent | e1c619bc240557f6029abdbf1222dc90ffb87fa2 (diff) |
remove scriptaculous inplace editor in feed cats dialog
Diffstat (limited to 'modules/pref-feeds.php')
-rw-r--r-- | modules/pref-feeds.php | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 7671d3a67..84928807a 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1085,10 +1085,30 @@ onclick='toggleSelectRow(this);' type=\"checkbox\" id=\"FCCHK-$cat_id\"></td>"; - print "<td><span id=\"FCATT-$cat_id\">" . - $edit_title . "</span></td>"; + print "<td>"; - print "</tr>"; +# print "<span id=\"FCATT-$cat_id\">" . +# $edit_title . "</span>"; + + print "<span dojoType=\"dijit.InlineEditBox\" + width=\"300px\" autoSave=\"false\" + cat-id=\"$cat_id\">" . $edit_title . + "<script type=\"dojo/method\" event=\"onChange\" args=\"item\"> + var elem = this; + dojo.xhrPost({ + url: 'backend.php', + content: {op: 'pref-feeds', subop: 'editCats', + action: 'save', + value: this.value, + cid: this.srcNodeRef.getAttribute('cat-id')}, + load: function(response) { + elem.attr('value', response); + } + }); + </script> + </span>"; + + print "</td></tr>"; ++$lnum; } |