1define(['jquery'],function($,fc_ui_dialog){return{'apply':function(e){e.preventDefault();var url=$(this).data('action-url');var button=$(this);function _error(message){require(['fc/ui/dialog'],function(fc_ui_dialog){var options={'with_close':false} 2var modal_obj=fc_ui_dialog.create('Errore',message,options);modal_obj.find('.modal-footer').empty().append('<button class="btn btn-default btn-lg btn-danger">Ok</button>') 3fc_ui_dialog.show(modal_obj);modal_obj.on('click','button',function(e){e.preventDefault();fc_ui_dialog.close(modal_obj);});});} 4$.get(url).done(function(message){if(message=='ok'){var action_url=button.data('action-url');button.data('action-url',button.data('action-undo-url')).data('action-undo-url',action_url);button.toggleClass('btn-success').toggleClass('btn-default');}else{_error("Errore, impossibile impostare la frase come lavorata: "+message);}}).fail(function(jqXHR){_error("Errore di rete, impossibile impostare la frase come lavorata!");});}}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.