Skip to main content

Akhilesh ka Search


Template.k1.events({
  'submit #comment_box': function(){
      event.preventDefault();
      var k11 = event.target.comment_now.value;
      var k12 = event.target.comment_1.value;
      var k14 = k11.trim();
      //alert(new RegExp('/^' + k12 + '/'))
      //check if there is existing comments in same post
      const count3 = PostComment.find({post_id:{$regex:new RegExp('^' + k12)}}).count(); //like 'pa%'
      //alert('Post id is '+k12+' comment text is '+k14+' and the total post and comment count is '+count3);
      var a = 0;
      var b = 0;
      var c = 0;
      var k123 = 0;
      var count4 = 0;
      var k141;
      if(count3 == 0)
      {
       a = '_1';
       k123 = k12+a;
      }
      else
       {
        count_3 = count3+1;
        a = '_';
        count4 = k12+a+count_3;
        //const count5 = PostComment.find({post_id: /+k12+/}).count(); //like 'pa%'
        //alert(count5);
        //const s1 = k12.split('_');
        //b = '_';
        k123 = count4;   
        }
       //alert(a);
       //alert(k123);
      if(k14 == null || k14 == "")
      {
        $('#comment_now').addClass('borderRed');
        //alert(k14);
        return false;
      }
  else{
   // alert(k14); 
   const v1 = 0;
   const n1 = 1;
   const z1= 0;
    const m1 = Meteor.user().username;
    $('#comment_now').removeClass('borderRed');
          PostComment.insert({
          post_id: k123, 
          posttext: v1,
          postedBy: m1,
          commenttext: k14,
          reply_text: z1,
          parent: n1,
          createdAt: new Date()
        });
  }
  k123 = "";
  k14 = "";

      //alert(v1);
      event.target.comment_now.value = "";
}
});

Comments

Popular posts from this blog

curl http://localhost:8042/studies/333b2c11-52e9feea-5516186e-ecd61f37-69da2603  curl http://localhost:8042/patients/dc65762c-f476e8b9-898834f4-2f8a5014-2599bc94 bird@bird-Lenovo-ideapad-310-15IKB:/media/bird/2AE477A5E4777245/Meteor/OrthancMirror/build$ curl http://localhost:8042/patients [    "333b2c11-52e9feea-5516186e-ecd61f37-69da2603",    "da39a3ee-5e6b4b0d-3255bfef-95601890-afd80709" ] bird@bird-Lenovo-ideapad-310-15IKB:/media/bird/2AE477A5E4777245/Meteor/OrthancMirror/build$ curl http://localhost:8042/studies [    "9b5629ef-c28c48db-b3593009-35fda9cb-7a0bb799",    "abae0b24-5a718d9e-1b560140-2cda3ae0-30b846cb" ] bird@bird-Lenovo-ideapad-310-15IKB:/media/bird/2AE477A5E4777245/Meteor/OrthancMirror/build$  curl http://localhost:8042/series [    "993a521c-1b11574c-92e1c71d-a048784c-36866be0",    "5f19601c-3e5fa872-e566e9f2-36aa3b31-dc719c3e" ] bird@bird-Lenovo-ideapad-310-15IKB:/med...

COnfigure Orthanc

cmake -DSTATIC_BUILD:BOOL=ON -DCMAKE_BUILD_TYPE=Debug cmake "-DDCMTK_LIBRARIES=wrap;oflog" -DSTATIC_BUILD=OFF -DDEBIAN_USE_GTEST_SOURCE_PACKAGE:BOOL=ON -DCMAKE_BUILD_TYPE=Debug SRC https://bitbucket.org/sjodogne/orthanc/src/default/LinuxCompilation.txt?fileviewer=file-view-default # How to compile, install and run newest version of Orthanc DICOM server # from Github source in Ubuntu 16.04 LTS cd sudo apt-get update sudo apt-get install build-essential unzip cmake mercurial uuid-dev libcurl4-openssl-dev liblua5.1-0-dev libgtest-dev libpng-dev libsqlite3-dev libssl-dev libjpeg-dev zlib1g-dev libdcmtk2-dev libboost-all-dev libwrap0-dev libcharls-dev libjsoncpp-dev libpugixml-dev doxygen qupzilla sudo rm -rf Orthanc* sudo apt-get purge orthanc git clone https://github.com/jodogne/OrthancMirror.git mkdir ~/OrthancBuild cd ~/OrthancBuild/ cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release ~/OrthancMirror/ sudo make sudo make doc ./Orthanc --version ./Orthanc & qupzill...