text: define(function(require, exports, module) {
  
      var Notify = require('common/bootstrap-notify');
      require("$");
      
      exports.run = function() {
  
  
          var $container = $('#quiz-table-container');
          require('../../util/batch-select')($container);
          require('../../util/batch-delete')($container);
          require('../../util/item-delete')($container);
  
          $('.test-paper-reset').on('click','',function(){
          	if (!confirm(Translator.trans('重置会清空原先的题目,确定要继续吗？'))) {
          	    return ;
          	}
              window.location.href=$(this).data('url');
          });
  
  
  
          var $table = $('#quiz-table');
  
          $table.on('click', '.open-testpaper, .close-testpaper', function() {
              var $trigger = $(this);
              var $oldTr = $trigger.parents('tr');
  
              if (!confirm(Translator.trans('真的要%title%吗？ 试卷发布后无论是否关闭都将无法修改。',{title:$trigger.attr('title')}))) {
                  return ;
              }
  
              $.post($(this).data('url'), function(html){
                  Notify.success($trigger.attr('title') + Translator.trans('成功！'));
  
                  var $tr = $(html);
                  $oldTr.replaceWith($tr);
              }).error(function(){
                  Notify.danger($trigger.attr('title') + Translator.trans('失败'));
              });
          });
  
  
  
      };
  
  
  });