Sha256: 7c46e9b003b169d3a206b57b1210c6ef35a9d365a6f7ac8a39e01801ff07b4b8
Contents?: true
Size: 977 Bytes
Versions: 8
Compression:
Stored size: 977 Bytes
Contents
var AdminData = AdminData || {}; AdminData.actOnResult = { action: function(action_type) { var formData = $('#advance_search_form').data('admin_data_form_array'), parameterizedData; formData.push({ 'name': 'admin_data_advance_search_action_type', 'value': action_type }); parameterizedData = $.param(formData); $.ajax({ url: $('#advance_search_form').attr('action'), type: 'post', dataType: 'json', data: parameterizedData, success: function(json) { AdminData.actOnResult.successCallback(json); } }); }, successCallback: function(json) { $('#results').text(json.success); } }; $('#advance_search_delete_all').live('click', function() { if (window.confirm('Are you sure?')) { AdminData.actOnResult.action('delete'); } return false; }); $('#advance_search_destroy_all').live('click', function() { if (AdminData.jsUtil.confirm('Are you sure?')) { AdminData.actOnResult.action('destroy'); } return false; });
Version data entries
8 entries across 8 versions & 1 rubygems