אונטערשייד צווישן ווערסיעס פון "באַניצער:גאון הירדן/הודעה למשתמש.js"

אידיש
אין תקציר עריכה
(אידיש)
שורה 12: שורה 12:
function openMyDiffDialog(){
function openMyDiffDialog(){


var dialog = $('<div><p>כותרת ההודעה:</p><p><textarea id="titleNote" rows="1"></textarea></p><p>תוכן ההודעה:</p><p><textarea id="textNote" rows="10"></textarea></p></div>').dialog({title: "כתיבת הודעה",
var dialog = $('<div><p>מעלדונג קעפל:</p><p><textarea id="titleNote" rows="1"></textarea></p><p>מעלדונג אינהאלט:</p><p><textarea id="textNote" rows="10"></textarea></p></div>').dialog({title: "שרייבן מעלדונג",
open: function() {
open: function() {
$("#textNote").val(replay+ " " + difftext);
$("#textNote").val(replay+ " " + difftext);
שורה 20: שורה 20:
dialog.remove();
dialog.remove();
},buttons: [{
},buttons: [{
text: "בשיחת המשתמש",
text: "אין באניצער שמועס",
click: function() {
click: function() {
שורה 30: שורה 30:
}
}
},{
},{
text: "בשיחת הערך",
text: "אין ארטיקל שמועס",
click: function() {
click: function() {
שורה 40: שורה 40:
}
}
},{
},{
text: "סגור",
text: "פארמאך",
click: function() {
click: function() {
שורה 64: שורה 64:
};
};
if(addtext===''||addtext===null||addtext===undefined){
if(addtext===''||addtext===null||addtext===undefined){
mw.notify('ההודעה לא נשלחה');
mw.notify('די מעלדונג איז נישט געשיקט');
  return;
  return;
}
}
שורה 77: שורה 77:
if (data && data.flow && typeof next == 'function')
if (data && data.flow && typeof next == 'function')
        next();
        next();
        alert('ההודעה נשמרה בדף :' + talkPage);
        alert('די מעלדונג איז געהיטן אין בלאט :' + talkPage);
         
         
},
},
error: function(data) {
error: function(data) {
alert('תקלה. ההודעה לא נשמרה');
alert('פּאַנטשער. די מעלדונג איז נישט געהיטן');
}
}
});
});
שורה 87: שורה 87:
else if (data && data.edit && data.edit.result == 'Success' && typeof next == 'function'){
else if (data && data.edit && data.edit.result == 'Success' && typeof next == 'function'){
next();
next();
alert('ההודעה נשמרה בדף שיחתו של משתמש:' + user);
alert('די מעלדונג איז געהיטן אין שמועס בלאט פון באניצער:' + user);
        }
        }
});
});