Permalink
Browse files

some fixes #170

  • Loading branch information...
1 parent 419da41 commit 76324231cf9cd775329bf55a340bfd0aea6225e3 @Tudmotu Tudmotu committed May 12, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 help/examples/13-fileManager.html
  2. +3 −3 plugins/wysiwyg.fileManager.js
@@ -31,7 +31,7 @@
groupIndex: 12,
tooltip: "File Manager",
exec: function () {
- $.wysiwyg.fileManager.setAjaxHandler("http://localhost/cgi-bin/wysiwyg_file_handler.pl").init(function (file) {
+ $.wysiwyg.fileManager.setAjaxHandler("http://localhost/cgi-bin/file_manager.pl").init(function (file) {
file ? alert(file) : alert("No file selected.");
});
}
@@ -76,7 +76,7 @@
$(this).removeClass("wysiwyg-files-hover");
});
dialog.find("li").live("click", function () {
- $(".wysiwyg-files-wrapper").find("li").css("backgroundColor", "#FFF")
+ $(".wysiwyg-files-wrapper").find("li").css("backgroundColor", "#FFF");
if ($(this).hasClass("wysiwyg-files-dir")) {
$(".wysiwyg-files-wrapper").find("input[name=url]").val('');
$('#wysiwyg-files-list-wrapper').addClass("wysiwyg-files-ajax");
@@ -87,7 +87,7 @@
});
dialog.find("input[name=submit]").hide();
} else {
- $(this).css("backgroundColor", "#BDF")
+ $(this).css("backgroundColor", "#BDF");
$(".wysiwyg-files-wrapper").find("input[name=url]").val($(this).attr("rel"));
dialog.find("input[name=submit]").show();
}
@@ -131,7 +131,7 @@
var self = this;
self.curDir = dir;
// Retreives list of files inside a certain directory:
- $.getJSON(self.handler, { "dir": self.curDir, "action": "browse" }, function (json) {
+ $.getJSON(self.handler, { "dir": self.curDir, "action": "list" }, function (json) {
callback(self.renderList(json));
});
}

0 comments on commit 7632423

Please sign in to comment.