1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00
phorge-phorge/webroot/rsrc/js/application/conpherence
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
..
behavior-drag-and-drop-photo.js Conpherence - add crop 2013-02-06 14:03:52 -08:00
behavior-menu.js Made progress on pagination 2013-03-29 18:04:37 -07:00
behavior-pontificate.js Decrease fragility of conpherence-pontificate behavior 2013-03-31 14:41:13 -07:00
behavior-widget-pane.js Conpherence - add per thread notification setting 2013-03-26 13:30:35 -07:00