Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13972258
D16700.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
6 KB
Referenced Files
None
Subscribers
None
D16700.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -8,7 +8,7 @@
return array(
'names' => array(
'conpherence.pkg.css' => '4601645d',
- 'conpherence.pkg.js' => '11f3e07e',
+ 'conpherence.pkg.js' => '44dd69f5',
'core.pkg.css' => '7ca260a3',
'core.pkg.js' => '30185d95',
'darkconsole.pkg.js' => 'e7393ebb',
@@ -437,7 +437,6 @@
'rsrc/js/application/calendar/behavior-recurring-edit.js' => '5f1c4d5f',
'rsrc/js/application/config/behavior-reorder-fields.js' => 'b6993408',
'rsrc/js/application/conpherence/ConpherenceThreadManager.js' => '01774ab2',
- 'rsrc/js/application/conpherence/behavior-drag-and-drop-photo.js' => 'cf86d16a',
'rsrc/js/application/conpherence/behavior-durable-column.js' => 'c5238acb',
'rsrc/js/application/conpherence/behavior-menu.js' => '9eb55204',
'rsrc/js/application/conpherence/behavior-participant-pane.js' => '8604caa8',
@@ -665,7 +664,6 @@
'javelin-behavior-choose-control' => '327a00d1',
'javelin-behavior-comment-actions' => '0300eae6',
'javelin-behavior-config-reorder-fields' => 'b6993408',
- 'javelin-behavior-conpherence-drag-and-drop-photo' => 'cf86d16a',
'javelin-behavior-conpherence-menu' => '9eb55204',
'javelin-behavior-conpherence-participant-pane' => '8604caa8',
'javelin-behavior-conpherence-pontificate' => 'f2e58483',
@@ -2010,12 +2008,6 @@
'javelin-util',
'phabricator-notification-css',
),
- 'cf86d16a' => array(
- 'javelin-behavior',
- 'javelin-dom',
- 'javelin-workflow',
- 'phabricator-drag-and-drop-file-upload',
- ),
'cfd23f37' => array(
'javelin-install',
'javelin-util',
@@ -2305,7 +2297,6 @@
'conpherence-header-pane-css',
),
'conpherence.pkg.js' => array(
- 'javelin-behavior-conpherence-drag-and-drop-photo',
'javelin-behavior-conpherence-menu',
'javelin-behavior-conpherence-participant-pane',
'javelin-behavior-conpherence-pontificate',
diff --git a/resources/celerity/packages.php b/resources/celerity/packages.php
--- a/resources/celerity/packages.php
+++ b/resources/celerity/packages.php
@@ -162,7 +162,6 @@
'conpherence-header-pane-css',
),
'conpherence.pkg.js' => array(
- 'javelin-behavior-conpherence-drag-and-drop-photo',
'javelin-behavior-conpherence-menu',
'javelin-behavior-conpherence-participant-pane',
'javelin-behavior-conpherence-pontificate',
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -291,7 +291,6 @@
'ConpherenceDAO' => 'applications/conpherence/storage/ConpherenceDAO.php',
'ConpherenceDurableColumnView' => 'applications/conpherence/view/ConpherenceDurableColumnView.php',
'ConpherenceEditor' => 'applications/conpherence/editor/ConpherenceEditor.php',
- 'ConpherenceFormDragAndDropUploadControl' => 'applications/conpherence/view/ConpherenceFormDragAndDropUploadControl.php',
'ConpherenceFulltextQuery' => 'applications/conpherence/query/ConpherenceFulltextQuery.php',
'ConpherenceIndex' => 'applications/conpherence/storage/ConpherenceIndex.php',
'ConpherenceLayoutView' => 'applications/conpherence/view/ConpherenceLayoutView.php',
@@ -4808,7 +4807,6 @@
'ConpherenceDAO' => 'PhabricatorLiskDAO',
'ConpherenceDurableColumnView' => 'AphrontTagView',
'ConpherenceEditor' => 'PhabricatorApplicationTransactionEditor',
- 'ConpherenceFormDragAndDropUploadControl' => 'AphrontFormControl',
'ConpherenceFulltextQuery' => 'PhabricatorOffsetPagedQuery',
'ConpherenceIndex' => 'ConpherenceDAO',
'ConpherenceLayoutView' => 'AphrontTagView',
diff --git a/src/applications/conpherence/view/ConpherenceFormDragAndDropUploadControl.php b/src/applications/conpherence/view/ConpherenceFormDragAndDropUploadControl.php
deleted file mode 100644
--- a/src/applications/conpherence/view/ConpherenceFormDragAndDropUploadControl.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-final class ConpherenceFormDragAndDropUploadControl extends AphrontFormControl {
-
- private $dropID;
-
- public function setDropID($drop_id) {
- $this->dropID = $drop_id;
- return $this;
- }
- public function getDropID() {
- return $this->dropID;
- }
-
- protected function getCustomControlClass() {
- return null;
- }
-
- protected function renderInput() {
-
- $drop_id = celerity_generate_unique_node_id();
- Javelin::initBehavior('conpherence-drag-and-drop-photo',
- array(
- 'target' => $drop_id,
- 'form_pane' => 'conpherence-form',
- 'upload_uri' => '/file/dropupload/',
- 'activated_class' => 'conpherence-dialogue-upload-photo',
- ));
- require_celerity_resource('conpherence-update-css');
-
- return phutil_tag(
- 'div',
- array(
- 'id' => $drop_id,
- 'class' => 'conpherence-dialogue-drag-photo',
- ),
- pht('Drag and drop an image here to upload it.'));
- }
-
-}
diff --git a/webroot/rsrc/js/application/conpherence/behavior-drag-and-drop-photo.js b/webroot/rsrc/js/application/conpherence/behavior-drag-and-drop-photo.js
deleted file mode 100644
--- a/webroot/rsrc/js/application/conpherence/behavior-drag-and-drop-photo.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * @provides javelin-behavior-conpherence-drag-and-drop-photo
- * @requires javelin-behavior
- * javelin-dom
- * javelin-workflow
- * phabricator-drag-and-drop-file-upload
- */
-
-JX.behavior('conpherence-drag-and-drop-photo', function(config) {
-
- var target = JX.$(config.target);
- var form_pane = JX.$(config.form_pane);
-
- function onupload(f) {
- var data = {
- 'file_id' : f.getID(),
- 'action' : 'metadata'
- };
-
- var form = JX.DOM.find(form_pane, 'form');
- var workflow = JX.Workflow.newFromForm(form, data);
- workflow.start();
- }
-
- if (JX.PhabricatorDragAndDropFileUpload.isSupported()) {
- var drop = new JX.PhabricatorDragAndDropFileUpload(target)
- .setURI(config.upload_uri);
- drop.listen('didBeginDrag', function() {
- JX.DOM.alterClass(target, config.activated_class, true);
- });
- drop.listen('didEndDrag', function() {
- JX.DOM.alterClass(target, config.activated_class, false);
- });
- drop.listen('didUpload', onupload);
- drop.start();
- }
-
-});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 18 2024, 6:00 PM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6728105
Default Alt Text
D16700.diff (6 KB)
Attached To
Mode
D16700: Remove unused drag and drop Conpherence code
Attached
Detach File
Event Timeline
Log In to Comment