x.view.js 917 B

1234567891011121314151617181920212223242526
  1. $(function()
  2. {
  3. $('.main-actions-holder').css('height', '0px');
  4. var xuanAction = "<div class='xuancard-actions fixed'>";
  5. $('.main-col div.main-actions .btn-toolbar a').each(function(){
  6. var $that = $(this);
  7. if($that.attr('id') == 'back') return true;
  8. var href = $that.attr('href');
  9. var title = $that.attr('title') == undefined ? '' : " title='" + $that.attr('title') + "'";
  10. var btnClass = " class='" + $that.attr('class') + "'";
  11. var action = $that.html();
  12. if(href.indexOf('edit') < 0) return true;
  13. url = 'xxc:openUrlInDialog/' + encodeURIComponent(sysurl + href);
  14. target = " target='_blank'";
  15. xuanAction += "<a href='" + url + "'" + title + target + btnClass + '>' + action + "</a>";
  16. });
  17. xuanAction += '</div>';
  18. $('body').append(xuanAction);
  19. $('.xuancard-actions a.iframe').modalTrigger();
  20. })