main.js: Remove debug
This commit is contained in:
parent
0f33311f65
commit
50d3c49297
|
@ -92,7 +92,6 @@
|
||||||
/* event from comment textarea button popups */
|
/* event from comment textarea button popups */
|
||||||
/* insert returned bbcode at cursor position or replace selected text */
|
/* insert returned bbcode at cursor position or replace selected text */
|
||||||
$("body").on("fbrowser.image.comment", function(e, filename, bbcode, id) {
|
$("body").on("fbrowser.image.comment", function(e, filename, bbcode, id) {
|
||||||
console.log("on", id);
|
|
||||||
$.colorbox.close();
|
$.colorbox.close();
|
||||||
var textarea = document.getElementById("comment-edit-text-" +id);
|
var textarea = document.getElementById("comment-edit-text-" +id);
|
||||||
var start = textarea.selectionStart;
|
var start = textarea.selectionStart;
|
||||||
|
@ -117,7 +116,6 @@
|
||||||
$("#"+id+"_onoff ."+ (val==0?"on":"off")).addClass("hidden");
|
$("#"+id+"_onoff ."+ (val==0?"on":"off")).addClass("hidden");
|
||||||
$("#"+id+"_onoff ."+ (val==1?"on":"off")).removeClass("hidden");
|
$("#"+id+"_onoff ."+ (val==1?"on":"off")).removeClass("hidden");
|
||||||
input.val(val);
|
input.val(val);
|
||||||
//console.log(id);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/* setup field_richtext */
|
/* setup field_richtext */
|
||||||
|
@ -277,8 +275,6 @@
|
||||||
$("#nav-notifications-linkmenu").removeClass("on");
|
$("#nav-notifications-linkmenu").removeClass("on");
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(data.sysmsgs);
|
|
||||||
|
|
||||||
$(data.sysmsgs.notice).each(function(key, message){
|
$(data.sysmsgs.notice).each(function(key, message){
|
||||||
$.jGrowl(message, {sticky: true, theme: 'notice'});
|
$.jGrowl(message, {sticky: true, theme: 'notice'});
|
||||||
});
|
});
|
||||||
|
@ -692,8 +688,6 @@
|
||||||
// page number
|
// page number
|
||||||
infinite_scroll.pageno+=1;
|
infinite_scroll.pageno+=1;
|
||||||
|
|
||||||
console.log('Loading page ' + infinite_scroll.pageno);
|
|
||||||
|
|
||||||
// get the raw content from the next page and insert this content
|
// get the raw content from the next page and insert this content
|
||||||
// right before "#conversation-end"
|
// right before "#conversation-end"
|
||||||
$.get('network?mode=raw' + infinite_scroll.reload_uri + '&page=' + infinite_scroll.pageno, function(data) {
|
$.get('network?mode=raw' + infinite_scroll.reload_uri + '&page=' + infinite_scroll.pageno, function(data) {
|
||||||
|
|
Loading…
Reference in a new issue