mails2nitesh / kfm

Automatically exported from code.google.com/p/kfm
0 stars 0 forks source link

plugin to select a directory #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
small jQuery plugin which should select a directory using the KFM2 API and
set a hidden input box's value to that directory name.

Original issue reported on code.google.com by kae.verens@gmail.com on 4 Oct 2009 at 7:58

GoogleCodeExporter commented 8 years ago
KFM1 untested:
plugin: return_folder
plugin.php
<?php
$p = new kfmPlugin('return_folder');
$kfm->addPlugin($p);
?>

plugin.js
function plugin_return_folder(){
  this.name = "return_folder";
  this.title = "Return folder";
  this.category = "returning";
  this.mode = 4;
  this.writable = 2;
  this.doFunction = function(dirs){
    $j(window.parent).find('#hidden_field').val(kfm_directories[dirs[0]].path);
  }
  this.nocontextmenu = false;
}

kfm_addHook(new plugin_return_folder());

Original comment by bterku...@gmail.com on 27 Oct 2009 at 8:46

GoogleCodeExporter commented 8 years ago
Is this issue closed?

Original comment by bterku...@gmail.com on 21 Feb 2010 at 10:54

GoogleCodeExporter commented 8 years ago
yes.

Original comment by kae.verens@gmail.com on 21 Feb 2010 at 12:09