I have a custom module called rss and it contains a function on the page called feed_view, to edit_feed that does inline edit from this file in edit.js file in the rss module:
$('.edit').editable(Drupal.settings.basePath+'edit_feed'+file_name,{
type : 'text',
cancel : 'Cancel',
submit : 'OK',
indicator : 'Saving data...',
tooltip : 'Click to edit',
style : 'inherit'
});
I found drupal_add_js("var file_name = '".arg(1)."';","inline"); in the feed_view page so it can find file_name to post so I added it to edit_feed but it doesn't seem to grab it.
Here is error I get since it does not have file_name -
http://bundlepost.com/edit_feed/?id=489510&value=Pro%20Users%20Get%20Con...
Here is properly formatted url when posted on feed_view - http://bundlepost.com/edit_feed/581?id=897797&value=Pro%20Users%20Get%20...
this works on my page called feed_view which is also a function in the rss module:
$items['edit_feed/%'] = array(
'title' => 'Updating Feed',
'page callback' => 'edit_feed',
'access callback' => 'feed_ingestion_status',
'file' => 'rss.admin.inc',
'type' => MENU_CALLBACK,
);