Changeset 946578
- Timestamp:
- 07/10/2014 10:28:40 PM (11 years ago)
- File:
-
- 1 edited
-
hookpress/trunk/options.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hookpress/trunk/options.php
r481998 r946578 254 254 255 255 var setEvents = function setEvents() { 256 $( '#TB_window .newtype').live('change',getHooks);257 $( '#TB_window #newhook').live('change',getFields);258 $( '#TB_window #newfields').live('change',enforceFirst);259 $( '#TB_window #newsubmit').live('click',newSubmit);260 $( '#TB_window #newcancel').live('click',tb_remove);261 262 $( '#webhooks .delete').live('click', function(e){256 $(document).on('change','#TB_window .newtype',getHooks); 257 $(document).on('change','#TB_window #newhook',getFields); 258 $(document).on('change','#TB_window #newfields',enforceFirst); 259 $(document).on('click','#TB_window #newsubmit',newSubmit); 260 $(document).on('click','#TB_window #newcancel',tb_remove); 261 262 $(document).on('click', '#webhooks .delete', function(e){ 263 263 var id = e.currentTarget.id.replace('delete',''); 264 264 deleteHook(id); 265 265 }); 266 $( '#webhooks .edit').live('click', function(e){266 $(document).on('click', '#webhooks .edit', function(e){ 267 267 var id = e.currentTarget.id.replace('edit',''); 268 268 if(id){setupEditHook(id);} 269 269 }); 270 270 271 $( '#webhooks .on').live('click', function(e){271 $(document).on('click', '#webhooks .on', function(e){ 272 272 var id = e.currentTarget.id.replace('on',''); 273 273 var nonce = $('#action-nonce-' + id).val(); 274 274 if(id && nonce){setHookEnabled(id, nonce, 'false');} 275 275 }); 276 $( '#webhooks .off').live('click', function(e){276 $(document).on('click', '#webhooks .off', function(e){ 277 277 var id = e.currentTarget.id.replace('off',''); 278 278 var nonce = $('#action-nonce-' + id).val();
Note: See TracChangeset
for help on using the changeset viewer.