diff --git a/apps/files_sharing/ajax/getitem.php b/apps/files_sharing/ajax/getitem.php
new file mode 100644
index 0000000000..a074510363
--- /dev/null
+++ b/apps/files_sharing/ajax/getitem.php
@@ -0,0 +1,10 @@
+
\ No newline at end of file
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index 6ca018fca0..6b5b47f90f 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -18,88 +18,42 @@ $(document).ready(function() {
}
createShareDialog(filenames, files);
});
- $("input[name=share_type]").live('change', function() {
- $('#private').toggle();
- $('#public').toggle();
- });
- $('.uid_shared_with').live('keyup', function() {
+ $('#uid_shared_with').live('keyup', function() {
$(this).autocomplete({
- source: '../apps/files_sharing/ajax/userautocomplete.php',
- minLength: 1
+ source: '../apps/files_sharing/ajax/userautocomplete.php'
});
});
- $('button.add-uid_shared_with').live('click', function(event) {
- event.preventDefault();
- // TODO Make sure previous textbox has a valid user or group name
- var html = "
";
- html += "";
- html += "";
- $(html).insertAfter('.add-uid_shared_with');
- $(this).html(' -  ');
- $(this).removeClass('add-uid_shared_with fancybutton');
- $(this).addClass('remove-uid_shared_with fancybutton');
- });
$('button.remove-uid_shared_with').live('click', function(event) {
event.preventDefault();
alert("remove");
// TODO Remove corresponding row
});
- $('#expire').datepicker({
- dateFormat:'MM d, yy',
- altField: '#expire_time',
- altFormat: 'yy-mm-dd'
- });
});
function createShareDialog(filenames, files) {
- var html = "