fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Panel z widokiem HTML reaguje na zmiany w panelu z edytorem XML.
[redakcja.git]
/
project
/
static
/
js
/
panels.js
diff --git
a/project/static/js/panels.js
b/project/static/js/panels.js
index
0c8761c
..
28970c1
100644
(file)
--- a/
project/static/js/panels.js
+++ b/
project/static/js/panels.js
@@
-1,5
+1,6
@@
function loadPanel(target, url) {
console.log('ajax', url, 'into', target);
function loadPanel(target, url) {
console.log('ajax', url, 'into', target);
+ $('.change-notification', $(target).parent()).fadeOut();
$(document).trigger('panel:unload', target);
$.ajax({
url: url,
$(document).trigger('panel:unload', target);
$.ajax({
url: url,
@@
-9,7
+10,6
@@
function loadPanel(target, url) {
$(target).html(data);
console.log(target, 'triggering panel:load');
$(document).trigger('panel:load', target);
$(target).html(data);
console.log(target, 'triggering panel:load');
$(document).trigger('panel:load', target);
- // panel(target);
},
error: function(request, textStatus, errorThrown) {
console.log('ajax', url, target, 'error:', textStatus, errorThrown);
},
error: function(request, textStatus, errorThrown) {
console.log('ajax', url, target, 'error:', textStatus, errorThrown);