move tv data
This commit is contained in:
parent
09c7da7d48
commit
68e71b78db
17 changed files with 121 additions and 79 deletions
|
@ -267,16 +267,14 @@
|
|||
var editorContent = dlg.querySelector('.editorContent');
|
||||
reload(editorContent, item);
|
||||
|
||||
$('.btnCloseDialog', dlg).on('click', closeDialog);
|
||||
$('.btnCloseDialog', dlg).on('click', function() {
|
||||
|
||||
PaperDialogHelper.close(dlg);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function closeDialog() {
|
||||
|
||||
history.back();
|
||||
}
|
||||
|
||||
function onDialogClosed() {
|
||||
|
||||
$(this).remove();
|
||||
|
|
|
@ -170,15 +170,13 @@
|
|||
var editorContent = dlg.querySelector('.editorContent');
|
||||
initEditor(editorContent);
|
||||
|
||||
$('.btnCloseDialog', dlg).on('click', closeDialog);
|
||||
$('.btnCloseDialog', dlg).on('click', function () {
|
||||
|
||||
PaperDialogHelper.close(dlg);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function closeDialog() {
|
||||
|
||||
history.back();
|
||||
}
|
||||
|
||||
function onDialogClosed() {
|
||||
|
||||
$(this).remove();
|
||||
|
|
|
@ -85,16 +85,14 @@
|
|||
var editorContent = dlg.querySelector('.editorContent');
|
||||
reload(editorContent, item);
|
||||
|
||||
$('.btnCloseDialog', dlg).on('click', closeDialog);
|
||||
$('.btnCloseDialog', dlg).on('click', function () {
|
||||
|
||||
PaperDialogHelper.close(dlg);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function closeDialog() {
|
||||
|
||||
history.back();
|
||||
}
|
||||
|
||||
function onDialogClosed() {
|
||||
|
||||
$(this).remove();
|
||||
|
|
|
@ -26,10 +26,12 @@
|
|||
}
|
||||
|
||||
dlg = null;
|
||||
$(window).off('navigate', onHashChange);
|
||||
if (enableHashChange()) {
|
||||
$(window).off('navigate', onHashChange);
|
||||
|
||||
if (window.location.hash == '#' + hash) {
|
||||
history.back();
|
||||
if (window.location.hash == '#' + hash) {
|
||||
history.back();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -42,9 +44,20 @@
|
|||
Dashboard.onPopupOpen();
|
||||
}
|
||||
|
||||
window.location.hash = hash;
|
||||
if (enableHashChange()) {
|
||||
|
||||
$(window).on('navigate', onHashChange);
|
||||
window.location.hash = hash;
|
||||
|
||||
$(window).on('navigate', onHashChange);
|
||||
}
|
||||
}
|
||||
|
||||
function enableHashChange() {
|
||||
// It's not firing popstate in response to hashbang changes
|
||||
if ($.browser.msie) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function openWithHash(dlg, hash, lockDocumentScroll) {
|
||||
|
@ -52,8 +65,18 @@
|
|||
new paperDialogHashHandler(dlg, hash, lockDocumentScroll);
|
||||
}
|
||||
|
||||
function close(dlg) {
|
||||
|
||||
if (enableHashChange()) {
|
||||
history.back();
|
||||
} else {
|
||||
dlg.close();
|
||||
}
|
||||
}
|
||||
|
||||
globalScope.PaperDialogHelper = {
|
||||
openWithHash: openWithHash
|
||||
openWithHash: openWithHash,
|
||||
close: close
|
||||
};
|
||||
|
||||
})(this);
|
|
@ -377,16 +377,14 @@
|
|||
fillLanguages(editorContent, languages);
|
||||
});
|
||||
|
||||
$('.btnCloseDialog', dlg).on('click', closeDialog);
|
||||
$('.btnCloseDialog', dlg).on('click', function () {
|
||||
|
||||
PaperDialogHelper.close(dlg);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function closeDialog() {
|
||||
|
||||
history.back();
|
||||
}
|
||||
|
||||
function onDialogClosed() {
|
||||
|
||||
$(this).remove();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue