1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-11 17:32:41 +01:00
phorge-phorge/src/applications/conpherence/controller
epriestley ef30820cf4 Decrease fragility of conpherence-pontificate behavior
Summary:
Currently, this behavior binds a ton of IDs. This makes the behavior fragile: if it is invoked on a page without all the right elements, some `JX.$()` tends to explode.

Instead, don't assume anything is present on the page. This allows the behavior to be invoked on other pages (like the "New Conpherence" page) or pages without some elements (like some future thread-only mobile view) without creating JS errors.

Test Plan:
Added comments, added comments with files. Viewed "New conphenrece" page.

NOTE: Control+Enter is currently broken, but this diff didn't change that behavior.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D5468
2013-03-31 14:41:13 -07:00
..
ConpherenceController.php Decrease fragility of conpherence-pontificate behavior 2013-03-31 14:41:13 -07:00
ConpherenceListController.php Decrease fragility of conpherence-pontificate behavior 2013-03-31 14:41:13 -07:00
ConpherenceNewController.php Make "New Conversation" a workflow dialog in Conpherence 2013-03-31 12:44:12 -07:00
ConpherenceUpdateController.php Fix Conpherence 2013-03-26 14:06:19 -07:00
ConpherenceViewController.php Conpherence - make pontificate be all ajaxy 2013-03-05 15:45:36 -08:00
ConpherenceWidgetController.php Decrease fragility of conpherence-pontificate behavior 2013-03-31 14:41:13 -07:00