A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Untitled - Stikked
From Morose Human, 10 Years ago, written in ASP.
Embed
  1. @using RMA.Core
  2. @using System.Security.Policy
  3. @using System.Web.Mvc
  4. @using System.Security.Policy
  5. @using System.Web.Mvc
  6. @model RMA.Data.Issue
  7.  
  8. <div class="modal fade" id="modalIssueRepairType" tabindex="-1" role="dialog">
  9.     <div class="modal-dialog" role="document">
  10.         <div class="modal-content">
  11.             <div class="modal-header">
  12.                 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
  13.                 <h4 class="modal-title" id="modalEmpHeader">Klasyfikacja usterki</h4>
  14.             </div>
  15.  
  16.             <div class="modal-body">
  17.                 @Html.ListBox("IssueRepairsList", (MultiSelectList)ViewBag.RepairTypeList, htmlAttributes: new { @class = "form-control chosen-select"})
  18.             </div>
  19.  
  20.             <div class="modal-footer">
  21.                 <button type="button" class="btn btn-default" data-dismiss="modal">Anuluj</button>
  22.                 <button id="modalIssueRepairTypeSubmit" type="button" class="btn btn-primary" data-loading-text="Proszę czekać...">Wybierz</button>
  23.             </div>
  24.         </div>
  25.     </div>
  26. </div>
  27.  
  28. <script type="text/javascript">
  29.     $(document).ready(function() {
  30.         $('#modalIssueRepairType').modal('show');
  31.         $('#modalIssueRepairType').on('shown.bs.modal', function () {
  32.             $('.chosen-select', this).chosen();
  33.         });
  34.  
  35.         $('#modalIssueRepairTypeSubmit').on('click', function() {
  36.             var $btn = $(this).button('loading');
  37.  
  38.             $.ajax({
  39.                 url: '@Url.Action("AssignRepairType", "Issue")',
  40.                 dataType: 'json',
  41.                 data: { AIssueId: @Model.Id, ARepairsId: $('#IssueRepairsList').chosen().val() },
  42.                 method: 'POST'
  43.             }).done(function(data) {
  44.                 $btn.button('reset');
  45.  
  46.                 $('#modalIssueRepairType').modal('hide');
  47.                 location.reload(true);
  48.             });
  49.         });
  50.     });
  51. </script>