/[LeafOK_CVS]/fenglin/bbs/themes/default/view_article.view.php
ViewVC logotype

Diff of /fenglin/bbs/themes/default/view_article.view.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.33 by sysadm, Wed May 7 11:27:22 2025 UTC Revision 1.34 by sysadm, Wed May 7 12:12:32 2025 UTC
# Line 311  Line 311 
311                  baseURL: document.location.protocol + '//' + document.location.hostname + (document.location.port=='' ? '' : (':' + document.location.port)) + '/bbs/',                  baseURL: document.location.protocol + '//' + document.location.hostname + (document.location.port=='' ? '' : (':' + document.location.port)) + '/bbs/',
312          });          });
313    
314          window.addEventListener("load", () => {          $(document).ready(function() {
315                  var s = document.getElementById("ex_dir");                  $("#ex_dir").on("change", function(e) {
316                  if (s)                          set_ex_dir($("#ex_dir").find(":selected").val());
317                  {                  });
                         s.addEventListener("change", (e) => {  
                                 set_ex_dir(s.value);  
                         });  
                 }  
318    
319                  var f = document.getElementById("move_article");                  $("#move_article").on("submit", (e) => {
320                  if (f)                          e.preventDefault();
321                  {                          if ($("#move_article").find("#sid").find(":selected").val() > 0)
322                          f.addEventListener("submit", (e) => {                          {
323                                  e.preventDefault();                                  move_article($("#move_article").find("#sid").find(":selected").val());
324                                  move_article(f.sid.value);                          }
325                          });                  });
                 }  
         });  
326    
         $(document).ready(function() {  
327                  $("img[class=auto_adjust]").on("load", function() {                  $("img[class=auto_adjust]").on("load", function() {
328                          if ($(this).width() > {$BBS_img_max_width})                          if ($(this).width() > {$BBS_img_max_width})
329                          {                          {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1