שיתוף | סקריפט לתיקון באג באתר ימות המשיח
-
באתר ניהול מערכות טלפוניות של ימות המשיח (הישן), יש באג עתיק:
בד"כ לאחר שינוי שם / מחיקה וכדו' של תיקייה, אוטומטית עץ הקבצים הימני מתרענן,
כל זה נכון רק בפעולה על תיקייה פנימית, אך אם התיקיה נמצאת בתפריט ראשי, יש באג שזה לא מתרענן, (ואם בתיקיה פנימית יש עצה לרענן את התיקיה ע"י בחירה כפולה של התיקיה הנוכחית, בתפריט ראשי גם את זה אין, כי העץ תמיד פתוח).
העצה היחידה, זה לרענן את כל הדף, מה שמאד מעצבן בפרט אם יש תיקיות אחרות פתוחות.
אז יצרתי סקריפט שמתקן את זה:// ==UserScript== // @name תיקון רענון שלוחה ראשית ימות // @namespace http://tampermonkey.net/ // @version 0.1 // @description // @author WWW // @match https://*.call2all.co.il/ym/index.php?view=ivr2 // @grant none // ==/UserScript== (function() { 'use strict'; run_ajax = function(destination, element, orderBy, ascDesc) { getFilesFrom = 0 ; numberOfFilesInResp = 0 ; ext_ini_exists = false ; current.path = $('#'+element).attr('rel'); current.id = element; destination = destination.replace(/_/g, '/'); $('#folder_display_scroller').scrollTop(0); $.ajax({ type: "POST", url: 'ws.php?ws=YDGetIVR2Extension', data: { path: '/'+destination, filesFrom: 0, filesLimit: filesLimit, orderBy: orderBy, orderDir: ascDesc }, dataType: 'json' }).done(function(resp){ if (resp.extIni.type=="whatsapp_phone_admin") current.extEditable=false; else current.extEditable=true; if (resp.responseStatus == "OK"){ destination = destination.replace('/', ''); appendFileTree(resp, destination, element); //console.log(resp.dirs); } }).always(function(){ }); }; })();התיקון בשורה 37.
במקור:destination = destination.replace('/', '_');זה מתקן גם שלחיצה על התיקיה הראשית, מרעננת את עץ התיקיות, (שימושי כשמוסיפים קובץ וכדו' לתיקיה הראשית).
-
באתר ניהול מערכות טלפוניות של ימות המשיח (הישן), יש באג עתיק:
בד"כ לאחר שינוי שם / מחיקה וכדו' של תיקייה, אוטומטית עץ הקבצים הימני מתרענן,
כל זה נכון רק בפעולה על תיקייה פנימית, אך אם התיקיה נמצאת בתפריט ראשי, יש באג שזה לא מתרענן, (ואם בתיקיה פנימית יש עצה לרענן את התיקיה ע"י בחירה כפולה של התיקיה הנוכחית, בתפריט ראשי גם את זה אין, כי העץ תמיד פתוח).
העצה היחידה, זה לרענן את כל הדף, מה שמאד מעצבן בפרט אם יש תיקיות אחרות פתוחות.
אז יצרתי סקריפט שמתקן את זה:// ==UserScript== // @name תיקון רענון שלוחה ראשית ימות // @namespace http://tampermonkey.net/ // @version 0.1 // @description // @author WWW // @match https://*.call2all.co.il/ym/index.php?view=ivr2 // @grant none // ==/UserScript== (function() { 'use strict'; run_ajax = function(destination, element, orderBy, ascDesc) { getFilesFrom = 0 ; numberOfFilesInResp = 0 ; ext_ini_exists = false ; current.path = $('#'+element).attr('rel'); current.id = element; destination = destination.replace(/_/g, '/'); $('#folder_display_scroller').scrollTop(0); $.ajax({ type: "POST", url: 'ws.php?ws=YDGetIVR2Extension', data: { path: '/'+destination, filesFrom: 0, filesLimit: filesLimit, orderBy: orderBy, orderDir: ascDesc }, dataType: 'json' }).done(function(resp){ if (resp.extIni.type=="whatsapp_phone_admin") current.extEditable=false; else current.extEditable=true; if (resp.responseStatus == "OK"){ destination = destination.replace('/', ''); appendFileTree(resp, destination, element); //console.log(resp.dirs); } }).always(function(){ }); }; })();התיקון בשורה 37.
במקור:destination = destination.replace('/', '_');זה מתקן גם שלחיצה על התיקיה הראשית, מרעננת את עץ התיקיות, (שימושי כשמוסיפים קובץ וכדו' לתיקיה הראשית).
-
באתר ניהול מערכות טלפוניות של ימות המשיח (הישן), יש באג עתיק:
בד"כ לאחר שינוי שם / מחיקה וכדו' של תיקייה, אוטומטית עץ הקבצים הימני מתרענן,
כל זה נכון רק בפעולה על תיקייה פנימית, אך אם התיקיה נמצאת בתפריט ראשי, יש באג שזה לא מתרענן, (ואם בתיקיה פנימית יש עצה לרענן את התיקיה ע"י בחירה כפולה של התיקיה הנוכחית, בתפריט ראשי גם את זה אין, כי העץ תמיד פתוח).
העצה היחידה, זה לרענן את כל הדף, מה שמאד מעצבן בפרט אם יש תיקיות אחרות פתוחות.
אז יצרתי סקריפט שמתקן את זה:// ==UserScript== // @name תיקון רענון שלוחה ראשית ימות // @namespace http://tampermonkey.net/ // @version 0.1 // @description // @author WWW // @match https://*.call2all.co.il/ym/index.php?view=ivr2 // @grant none // ==/UserScript== (function() { 'use strict'; run_ajax = function(destination, element, orderBy, ascDesc) { getFilesFrom = 0 ; numberOfFilesInResp = 0 ; ext_ini_exists = false ; current.path = $('#'+element).attr('rel'); current.id = element; destination = destination.replace(/_/g, '/'); $('#folder_display_scroller').scrollTop(0); $.ajax({ type: "POST", url: 'ws.php?ws=YDGetIVR2Extension', data: { path: '/'+destination, filesFrom: 0, filesLimit: filesLimit, orderBy: orderBy, orderDir: ascDesc }, dataType: 'json' }).done(function(resp){ if (resp.extIni.type=="whatsapp_phone_admin") current.extEditable=false; else current.extEditable=true; if (resp.responseStatus == "OK"){ destination = destination.replace('/', ''); appendFileTree(resp, destination, element); //console.log(resp.dirs); } }).always(function(){ }); }; })();התיקון בשורה 37.
במקור:destination = destination.replace('/', '_');זה מתקן גם שלחיצה על התיקיה הראשית, מרעננת את עץ התיקיות, (שימושי כשמוסיפים קובץ וכדו' לתיקיה הראשית).
-
ולמי שרוצה בקובץ מסודר
תוסף לימות.js -
יש לי עוד סקריפט קטן, שגורם שאפשר לשנות שם לקבצים ותיקיות וכדו', ע"י הקשה על אנטר בסיום ההקלדה, ללא צורך ללחוץ על OK עם העכבר...:
// ==UserScript== // @name שינוי שם בלחיצה על אנטר // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author WWW // @match https://*.call2all.co.il/ym/index.php* // @grant none // ==/UserScript== (function() { 'use strict'; $.extend($.ui.dialog.prototype.options, { create: function() { var $this = $(this); // focus first button and bind enter to it $this.parent().find('.ui-dialog-buttonpane button:first').focus(); $this.keypress(function(e) { if( e.keyCode == $.ui.keyCode.ENTER ) { $this.parent().find('.ui-dialog-buttonpane button:first').click(); return false; } }); } }); })();
שלום! נראה שהשיחה הזו מעניינת אותך, אבל עדיין אין לך חשבון.
נמאס לכם לגלול בין אותם הפוסטים בכל ביקור? כשנרשמים לחשבון, תמיד תחזרו בדיוק למקום שבו הייתם קודם, ותוכלו לבחור לקבל התראות על תגובות חדשות (בין אם במייל, ובין אם בהתראת פוש). תוכלו גם לשמור סימניות ולפרגן ב-upvote לפוסטים כדי להביע הערכה לחברי קהילה אחרים.
בעזרת התרומה שלך, הפוסט הזה יכול להיות אפילו טוב יותר 💗
הרשמה התחברות