1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02:00

Remove drag-and-drop upload debugging code

Summary: Blames to me. :o

Test Plan: derps

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D5474
This commit is contained in:
epriestley 2013-03-31 12:43:33 -07:00
parent a01a799c84
commit 89b75c72fd
2 changed files with 23 additions and 25 deletions

View file

@ -2878,7 +2878,7 @@ celerity_register_resource_map(array(
),
'phabricator-drag-and-drop-file-upload' =>
array(
'uri' => '/res/ce71f19a/rsrc/js/application/core/DragAndDropFileUpload.js',
'uri' => '/res/1daa63d1/rsrc/js/application/core/DragAndDropFileUpload.js',
'type' => 'js',
'requires' =>
array(
@ -3926,7 +3926,7 @@ celerity_register_resource_map(array(
'uri' => '/res/pkg/8aaacd1b/differential.pkg.css',
'type' => 'css',
),
'322728f3' =>
'67ea27d0' =>
array(
'name' => 'differential.pkg.js',
'symbols' =>
@ -3952,7 +3952,7 @@ celerity_register_resource_map(array(
18 => 'javelin-behavior-differential-toggle-files',
19 => 'javelin-behavior-differential-user-select',
),
'uri' => '/res/pkg/322728f3/differential.pkg.js',
'uri' => '/res/pkg/67ea27d0/differential.pkg.js',
'type' => 'js',
),
'c8ce2d88' =>
@ -4049,7 +4049,7 @@ celerity_register_resource_map(array(
'aphront-typeahead-control-css' => '4fc2a8f9',
'differential-changeset-view-css' => '8aaacd1b',
'differential-core-view-css' => '8aaacd1b',
'differential-inline-comment-editor' => '322728f3',
'differential-inline-comment-editor' => '67ea27d0',
'differential-local-commits-view-css' => '8aaacd1b',
'differential-results-table-css' => '8aaacd1b',
'differential-revision-add-comment-css' => '8aaacd1b',
@ -4067,24 +4067,24 @@ celerity_register_resource_map(array(
'javelin-behavior-aphlict-dropdown' => 'def4c982',
'javelin-behavior-aphlict-listen' => 'def4c982',
'javelin-behavior-aphront-basic-tokenizer' => 'def4c982',
'javelin-behavior-aphront-drag-and-drop' => '322728f3',
'javelin-behavior-aphront-drag-and-drop-textarea' => '322728f3',
'javelin-behavior-aphront-drag-and-drop' => '67ea27d0',
'javelin-behavior-aphront-drag-and-drop-textarea' => '67ea27d0',
'javelin-behavior-aphront-form-disable-on-submit' => 'def4c982',
'javelin-behavior-audit-preview' => 'f96657b8',
'javelin-behavior-dark-console' => 'dca4a03d',
'javelin-behavior-device' => 'def4c982',
'javelin-behavior-differential-accept-with-errors' => '322728f3',
'javelin-behavior-differential-add-reviewers-and-ccs' => '322728f3',
'javelin-behavior-differential-comment-jump' => '322728f3',
'javelin-behavior-differential-diff-radios' => '322728f3',
'javelin-behavior-differential-dropdown-menus' => '322728f3',
'javelin-behavior-differential-edit-inline-comments' => '322728f3',
'javelin-behavior-differential-feedback-preview' => '322728f3',
'javelin-behavior-differential-keyboard-navigation' => '322728f3',
'javelin-behavior-differential-populate' => '322728f3',
'javelin-behavior-differential-show-more' => '322728f3',
'javelin-behavior-differential-toggle-files' => '322728f3',
'javelin-behavior-differential-user-select' => '322728f3',
'javelin-behavior-differential-accept-with-errors' => '67ea27d0',
'javelin-behavior-differential-add-reviewers-and-ccs' => '67ea27d0',
'javelin-behavior-differential-comment-jump' => '67ea27d0',
'javelin-behavior-differential-diff-radios' => '67ea27d0',
'javelin-behavior-differential-dropdown-menus' => '67ea27d0',
'javelin-behavior-differential-edit-inline-comments' => '67ea27d0',
'javelin-behavior-differential-feedback-preview' => '67ea27d0',
'javelin-behavior-differential-keyboard-navigation' => '67ea27d0',
'javelin-behavior-differential-populate' => '67ea27d0',
'javelin-behavior-differential-show-more' => '67ea27d0',
'javelin-behavior-differential-toggle-files' => '67ea27d0',
'javelin-behavior-differential-user-select' => '67ea27d0',
'javelin-behavior-diffusion-commit-graph' => 'f96657b8',
'javelin-behavior-diffusion-pull-lastmodified' => 'f96657b8',
'javelin-behavior-error-log' => 'dca4a03d',
@ -4092,7 +4092,7 @@ celerity_register_resource_map(array(
'javelin-behavior-history-install' => 'def4c982',
'javelin-behavior-konami' => 'def4c982',
'javelin-behavior-lightbox-attachments' => 'def4c982',
'javelin-behavior-load-blame' => '322728f3',
'javelin-behavior-load-blame' => '67ea27d0',
'javelin-behavior-maniphest-batch-selector' => 'f85eb6d8',
'javelin-behavior-maniphest-subpriority-editor' => 'f85eb6d8',
'javelin-behavior-maniphest-transaction-controls' => 'f85eb6d8',
@ -4103,7 +4103,7 @@ celerity_register_resource_map(array(
'javelin-behavior-phabricator-gesture' => 'def4c982',
'javelin-behavior-phabricator-keyboard-shortcuts' => 'def4c982',
'javelin-behavior-phabricator-nav' => 'def4c982',
'javelin-behavior-phabricator-object-selector' => '322728f3',
'javelin-behavior-phabricator-object-selector' => '67ea27d0',
'javelin-behavior-phabricator-oncopy' => 'def4c982',
'javelin-behavior-phabricator-remarkup-assist' => 'def4c982',
'javelin-behavior-phabricator-reveal-content' => 'def4c982',
@ -4111,7 +4111,7 @@ celerity_register_resource_map(array(
'javelin-behavior-phabricator-tooltips' => 'def4c982',
'javelin-behavior-phabricator-watch-anchor' => 'def4c982',
'javelin-behavior-refresh-csrf' => 'def4c982',
'javelin-behavior-repository-crossreference' => '322728f3',
'javelin-behavior-repository-crossreference' => '67ea27d0',
'javelin-behavior-toggle-class' => 'def4c982',
'javelin-behavior-workflow' => 'def4c982',
'javelin-dom' => 'fe22443b',
@ -4141,7 +4141,7 @@ celerity_register_resource_map(array(
'phabricator-core-css' => '4fc2a8f9',
'phabricator-crumbs-view-css' => '4fc2a8f9',
'phabricator-directory-css' => '4fc2a8f9',
'phabricator-drag-and-drop-file-upload' => '322728f3',
'phabricator-drag-and-drop-file-upload' => '67ea27d0',
'phabricator-dropdown-menu' => 'def4c982',
'phabricator-file-upload' => 'def4c982',
'phabricator-filetree-view-css' => '4fc2a8f9',
@ -4163,7 +4163,7 @@ celerity_register_resource_map(array(
'phabricator-prefab' => 'def4c982',
'phabricator-project-tag-css' => '6b1fccc6',
'phabricator-remarkup-css' => '4fc2a8f9',
'phabricator-shaped-request' => '322728f3',
'phabricator-shaped-request' => '67ea27d0',
'phabricator-side-menu-view-css' => '4fc2a8f9',
'phabricator-standard-page-view' => '4fc2a8f9',
'phabricator-textareautils' => 'def4c982',

View file

@ -37,14 +37,12 @@ JX.install('PhabricatorDragAndDropFileUpload', {
_depth : 0,
_updateDepth : function(delta) {
if (this._depth == 0 && delta > 0) {
JX.log('begin: ' + this._depth + ' @ ' + delta);
this.invoke('didBeginDrag');
}
this._depth += delta;
if (this._depth == 0 && delta < 0) {
JX.log('end: ' + this._depth + ' @ ' + delta);
this.invoke('didEndDrag');
}
},