Gorilla.php
changeset 4 58780df3147b
parent 3 6fe9c484bb26
child 5 7977508aeda3
equal deleted inserted replaced
3:6fe9c484bb26 4:58780df3147b
   126         is_private: $('#gorilla_private:checked').val() ? true : false,
   126         is_private: $('#gorilla_private:checked').val() ? true : false,
   127         nick: $('#gorilla_nick').val(),
   127         nick: $('#gorilla_nick').val(),
   128         title: $('#gorilla_title').val(),
   128         title: $('#gorilla_title').val(),
   129         ttl: parseInt($('.gorilla_ttl:checked').val()),
   129         ttl: parseInt($('.gorilla_ttl:checked').val()),
   130         parent: parent,
   130         parent: parent,
   131         hash: $('#gorilla_hash').val();
   131         hash: $('#gorilla_hash').val()
   132       };
   132       };
   133       json_packet = ajaxEscape(toJSONString(json_packet));
   133       json_packet = ajaxEscape(toJSONString(json_packet));
   134       ajaxPost(makeUrlNS('Special', 'NewPaste/ajaxsubmit'), 'r=' + json_packet, function(ajax)
   134       ajaxPost(makeUrlNS('Special', 'NewPaste/ajaxsubmit'), 'r=' + json_packet, function(ajax)
   135         {
   135         {
   136           if ( ajax.readyState == 4 && ajax.status == 200 )
   136           if ( ajax.readyState == 4 && ajax.status == 200 )