1.9.x compatibility
[imagecompressor.git] / inc / ImageCompressor.js
index 6fc8eee..873b574 100644 (file)
@@ -65,7 +65,7 @@ var ImageCompressor = (function ($) {
                                $td = $row.find('td:last-child'),
                                mod_params = {
                                        'action': 'smush',
-                                       'source': $td.find('.smush').data('source'),
+                                       'source': $td.find('.smush').attr('data-source'),
                                        'path': $row.find('td:eq(1)').text()
                                };