~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to web/js/agMain.js

  • Committer: Chad Heuschober
  • Date: 2011-07-27 20:28:27 UTC
  • mto: (1.26.1 push-trunk)
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: chad.heuschober@mail.cuny.edu-20110727202827-8i86niktz4ua1k2s
Merged event actions. Added specStrLength comparison for ints into ImportHelper

Show diffs side-by-side

added added

removed removed

Lines of Context:
648
648
 
649
649
    $('.removeShiftTemplate').live('click', function() {
650
650
      if($(this).parents('#newshifttemplates').length) {
651
 
        $(this).parents('.shiftTemplateCounter').fadeOut(1200, function() {
652
 
          $(this).parents('.shiftTemplateCounter').remove();
653
 
        });
 
651
        $(this).parents('.shiftTemplateCounter').remove();
654
652
        return false;
655
653
      } else {
656
 
        var containerId = $(this).parents('.shiftTemplateCounter').attr('id');
657
 
        $.post($(this).attr('href'), { stId: $(this).attr('id') }, function() {
658
 
          $('#' + containerId).fadeOut(1200, function() {
659
 
            $('#' + containerId).remove();
660
 
          });
 
654
        $.post($(this).attr('href'), { stId: $(this).attr('id') }, function(data) {
 
655
          var g = data;
661
656
        })
662
657
      }
663
658
 
664
659
 
665
660
 
666
661
 
667
 
 
668
662
//      //if there is no id for this record(db_not_exists)
669
663
//      var passId = '#' + $(this).attr('id');
670
664
//      //send get/post to call delete